diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-07 15:24:32 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-07 15:24:32 +0000 |
commit | 10cb7778b2425656148151f1517d115436333ccf (patch) | |
tree | eb7de6486d81dcf8e7f1dcd7a159fabbb2366726 /t/test.pl | |
parent | 9aa9a1a6c6ecf1c6e255e8bfa7994df33d26e362 (diff) | |
download | perl-10cb7778b2425656148151f1517d115436333ccf.tar.gz |
Allow several arguments to display().
p4raw-id: //depot/perl@13518
Diffstat (limited to 't/test.pl')
-rw-r--r-- | t/test.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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*", $_) } @_; } |