Keep It Simple, Stupid | |
PerlMonks |
Re: How do I create a variable length byte array for socket transmission?by dave_the_m (Monsignor) |
on Jan 10, 2006 at 14:19 UTC ( [id://522178]=note: print w/replies, xml ) | Need Help?? |
You're using numerical addition rather than string concatenation. try the following instead: or even better, replace the whole loop with Finally, if you want to send data more complex than just a stream of ASCII "1"s, especially binary data, then you may want to check out the pack() function. Dave.
In Section
Seekers of Perl Wisdom
|
|