in reply to finding length of encrypted(binary) string
Sounds like your binary data is being mistaken for unicode data. Using the bytes pragma, optionally localised around the call to length should fix the problem.
$s = "\x{200}\x{400}\x{301}"; print length $s; 3 print do{ use bytes; length $s }; 6
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: finding length of encrypted(binary) string
by linuxfan (Beadle) on Dec 07, 2004 at 23:55 UTC |