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

Re^2: Splitting a string to chunks

by Fengor (Pilgrim)
on Nov 29, 2006 at 16:30 UTC ( #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? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2021-09-19 05:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?