diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-07-01 14:34:21 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-07-01 14:34:21 +0000 |
commit | 44826442183f4168cc7d203064d184977258d097 (patch) | |
tree | cf7d91cb072a05161de49153932810d6011e6804 /t/test.pl | |
parent | a7aed57248a1b7f3990887d947f738c29c496209 (diff) | |
download | perl-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.pl | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 { |