Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by BrowserUk (Pope)
on Aug 16, 2012 at 00:38 UTC ( #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
Node Status?
node history
Node Type: note [id://987666]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2017-10-23 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (279 votes). Check out past polls.

    Notices?