Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: Best technique to code/decode binary data for inter-machine communication?

by flexvault (Monsignor)
on Aug 16, 2012 at 13:13 UTC ( #987758=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    $to->send( pack 'n/a*', $binData );
    
  2. or download this
    
    $binData = pack('N',length( $data ) ) . $data;
    
    $to->send( $binData );
    
  3. or download this
    
     binmode Socket, ":raw";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://987758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2016-07-01 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (412 votes). Check out past polls.