Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Faster way to parse binary stream

by ikegami (Patriarch)
on Jun 19, 2007 at 19:50 UTC ( [id://622090]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for ($packed) { # alias $_ = $packed;
       pos = 0;
    ...
       # Make sure there's nothing extra at the end.
       /\G \z /xgc or die;
    }
    
  2. or download this
    sub extract_string {
       /\G (.) /xgc or die;
    ...
    }
    
    my @strings = parse($packed);
    

Log In?
Username:
Password:

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

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

    No recent polls found