summaryrefslogtreecommitdiff
path: root/t/test.pl
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-12-07 15:24:32 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-07 15:24:32 +0000
commit10cb7778b2425656148151f1517d115436333ccf (patch)
treeeb7de6486d81dcf8e7f1dcd7a159fabbb2366726 /t/test.pl
parent9aa9a1a6c6ecf1c6e255e8bfa7994df33d26e362 (diff)
downloadperl-10cb7778b2425656148151f1517d115436333ccf.tar.gz
Allow several arguments to display().
p4raw-id: //depot/perl@13518
Diffstat (limited to 't/test.pl')
-rw-r--r--t/test.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test.pl b/t/test.pl
index ac6bbb7938..6529b9243e 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -265,7 +265,7 @@ sub BAILOUT {
# A way to display scalars containing control characters and Unicode.
sub display {
- join("", map { $_ > 255 ? sprintf("\\x{%x}", $_) : chr($_) =~ /[[:cntrl:]]/ ? sprintf("\\%03o", $_) : chr($_) } unpack("U*", $_[0]));
+ map { join("", map { $_ > 255 ? sprintf("\\x{%x}", $_) : chr($_) =~ /[[:cntrl:]]/ ? sprintf("\\%03o", $_) : chr($_) } unpack("U*", $_) } @_;
}