Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (17)
As of 2014-07-11 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (230 votes), past polls