diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-12-07 15:09:23 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-12-07 15:09:23 +0000 |
commit | 915df47c6a00eb5a6b8d6051eb019773fc41d707 (patch) | |
tree | 72f6b65cbb2575389f2b04844277e7151a0a0028 /t | |
parent | 3d3d4f39342abc069c6470bf0947f2d00d3ead72 (diff) | |
parent | 6cb8f8aa0b354a4c64f58414ffb96b4138d3a098 (diff) | |
download | perl-915df47c6a00eb5a6b8d6051eb019773fc41d707.tar.gz |
Integrate again - can I catch up ?
p4raw-id: //depot/perlio@13516
Diffstat (limited to 't')
-rw-r--r-- | t/test.pl | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -263,6 +263,12 @@ 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])); +} + + # A somewhat safer version of the sometimes wrong $^X. BEGIN: { eval { |