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

Re: Null-stripping performance

by Thelonius (Priest)
on Feb 26, 2007 at 14:01 UTC ( #602123=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $value = unpack "x$index Z4", $string;
    
  2. or download this
    $value = substr($string, $index, 4);
    $value =~ y/\0//d;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2021-05-14 12:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (150 votes). Check out past polls.

    Notices?