From: Jarkko Hietaniemi Date: Fri, 7 Dec 2001 15:24:32 +0000 (+0000) Subject: Allow several arguments to display(). X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=10cb7778b2425656148151f1517d115436333ccf;p=p5sagit%2Fp5-mst-13.2.git Allow several arguments to display(). p4raw-id: //depot/perl@13518 --- diff --git a/t/test.pl b/t/test.pl index ac6bbb7..6529b92 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*", $_) } @_; }