Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
...It didn't do that in perl 5.8 Another difference to be aware of is this:
With 5.8 this prints a hexdump of the internal (UTF-8) representation of the string — e.g. useful when debugging encoding issues
while with 5.10, you'd get
i.e. the low-byte values of the codepoints, with the high-byte part being truncated. With warnings enabled, you also get "Character in 'H' format wrapped in unpack at...". With use bytes, or when explicitly turning off the utf8 flag (update: as shown below), you get the old behaviour. And specifically for debugging encoding issues, Devel::Peek is the recommended alternative since 5.10, because of this difference. In reply to Re^2: Understanding pack and unpack changes for binary data between 5.8 and 5.10
by almut
|
|