![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
finding length of encrypted(binary) stringby linuxfan (Beadle) |
on Dec 03, 2004 at 22:19 UTC ( #412300=perlquestion: print w/replies, xml ) | Need Help?? |
linuxfan has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
My perl script reads an encrypted string from a server. It then calculates the length of this string and sends this number along with the string back to the server.
I am using:
$str = read_str_from_server($args); $len = length $str; send_str_to_server($str,$len); Based on the server response, I think that the above method fails for certain values of $str and $len. Is there an alternate function to count the nubmer of "bytes" in the encrypted string? Thanks!
Back to
Seekers of Perl Wisdom
|
|