summaryrefslogtreecommitdiff
path: root/t/test.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-07-01 14:34:21 +0000
committerNicholas Clark <nick@ccl4.org>2008-07-01 14:34:21 +0000
commit44826442183f4168cc7d203064d184977258d097 (patch)
treecf7d91cb072a05161de49153932810d6011e6804 /t/test.pl
parenta7aed57248a1b7f3990887d947f738c29c496209 (diff)
downloadperl-44826442183f4168cc7d203064d184977258d097.tar.gz
Avoid using -> function call notation within test.pl, which is supposed
to keep to simple constructions to facilitate accurately testing the core interpreter, which might be buggy. p4raw-id: //depot/perl@34097
Diffstat (limited to 't/test.pl')
-rw-r--r--t/test.pl4
1 files changed, 1 insertions, 3 deletions
diff --git a/t/test.pl b/t/test.pl
index 2caf2e89a2..d697f77789 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -69,9 +69,7 @@ sub _diag {
return unless @_;
my @mess = map { /^#/ ? "$_\n" : "# $_\n" }
map { split /\n/ } @_;
- my $func = $TODO ? \&_print : \&_print_stderr;
- $func->(@mess);
-
+ $TODO ? _print(@mess) : _print_stderr(@mess);
}
sub diag {