P
Perl User
Hi,
Here's my problem:
I read encrypted data from a server and save it in a variable. Now, I need
to send this back to the server along with a number that tells how many
bytes long the binary data is.
I've tried
$x = read_data_from_server($args);
$y = length $x;
send_data_to_server($x,$y);
I am not sure if the length function is the right way to count the number
of bytes in the string $x. Can someone please show me how to do this?
Thanks a lot!
Here's my problem:
I read encrypted data from a server and save it in a variable. Now, I need
to send this back to the server along with a number that tells how many
bytes long the binary data is.
I've tried
$x = read_data_from_server($args);
$y = length $x;
send_data_to_server($x,$y);
I am not sure if the length function is the right way to count the number
of bytes in the string $x. Can someone please show me how to do this?
Thanks a lot!