p4raw-id: //depot/perl@13513
}
+# 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 {