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
In reply to Re: finding length of encrypted(binary) string
by BrowserUk
in thread finding length of encrypted(binary) string
by linuxfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |