Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by BrowserUk (Patriarch)
on Aug 16, 2012 at 00:38 UTC ( [id://987666]=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 );
    
    ...
    
    $from->recv( my $len, 2 );
    $from->recv( my $binData, unpack 'n', $len );
    
  2. or download this
    use Storable qw[ freeze ];;
    
    ...
      aaaw => "aaax",
      aaay => "aaaz",
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-24 05:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found