in reply to Its not working.. String works but not split
$ perl -le ' > $str = qq{ab\0cd}; > print $str; > print ord for split m{}, $str;' abcd 97 98 0 99 100 $
Note that the NUL doesn't show up when the string is printed but can be seen when each character's ordinal value is printed.
I hope this is helpful.
Cheers,
JohnGG
|
|---|