in reply to Re^35: Interleaving bytes in a string quickly
in thread Interleaving bytes in a string quickly
That makes no sense at all. It breaks everything:
pp \$a;; [Malformed UTF-8 character (fatal) at C:/Perl64/lib/Data/Dump.pm line +458, <STDIN> line 13. print unpack 'H*', $a;; Malformed UTF-8 character (byte 0xfe) in unpack at (eval 21) line 1, < +STDIN> line 14. Malformed UTF-8 character (unexpected continuation byte 0x84, with no +preceding start byte) in unpack Malformed UTF-8 character (unexpected continuation byte 0x80, with no +preceding start byte) in unpack Malformed UTF-8 character (unexpected continuation byte 0x80, with no +preceding start byte) in unpack Malformed UTF-8 character (unexpected continuation byte 0x80, with no +preceding start byte) in unpack Malformed UTF-8 character (unexpected continuation byte 0x80, with no +preceding start byte) in unpack Malformed UTF-8 character (unexpected continuation byte 0x80, with no +preceding start byte) in unpack 4100000000000000
And perl already has a perfectly good mechanism for packing integers into strings.
It also means that you now have a mechanism that will allow you to construct a string of packed integers that Perl has no way of unambiguously deconstructing.
I look forward to seeing that deperecated & removed sometime soon.
And it has no bearing upon the original desicussion because SvPVbytes() wouldn't know what to do with it either.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^37: Interleaving bytes in a string quickly
by ikegami (Patriarch) on Mar 01, 2010 at 18:56 UTC | |
by BrowserUk (Patriarch) on Mar 01, 2010 at 21:59 UTC | |
by ikegami (Patriarch) on Mar 02, 2010 at 03:48 UTC | |
by BrowserUk (Patriarch) on Mar 02, 2010 at 12:25 UTC | |
by ikegami (Patriarch) on Mar 02, 2010 at 23:45 UTC | |
|