Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Fast Way to Split String in to Chunk of Equal Length

by ikegami (Patriarch)
on Nov 25, 2011 at 07:22 UTC ( [id://939989]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @parts = $seq =~ /.{3}/sg;
    
  2. or download this
    my @parts = unpack('(a3)*', $seq);
    

Log In?
Username:
Password:

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

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

    No recent polls found