in reply to Re: Convert string to array - performance challenge
in thread Convert string to array - performance challenge
There is a problem with using unpack '(A)*':
[0] Perl> $buf = "abcdef\x00ghik";; [0] Perl> @a = unpack '(A)*', $buf;; [0] Perl> print length for @a;; 1 1 1 1 1 1 0 1 1 1 1
|
|---|