Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Splitting a string to chunks

by Fengor (Pilgrim)
on Nov 29, 2006 at 16:30 UTC ( [id://586739]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    'regexpad' => sub 
    {
    ...
      #remove padding
      $arr[-1] = substr($arr[-1],-$padding);
    }
    
  2. or download this
                   Rate split_pos grep_split substr_map regexpad regexo re
    +gex substr_loop unpack
    split_pos    5841/s        --       -64%       -70%     -75%   -76%  -
    +76%        -79%   -80%
    ...
    regex       24272/s      316%        50%        24%       6%     1%   
    + --        -13%   -17%
    substr_loop 27778/s      376%        72%        42%      21%    16%   
    +14%          --    -5%
    unpack      29240/s      401%        81%        50%      27%    22%   
    +20%          5%     --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-28 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found