Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by CountZero (Bishop)
on Nov 25, 2011 at 07:16 UTC ( [id://939988]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Modern::Perl;
    use Data::Dump qw/dump/;
    
    ...
    my @strings = $seq =~ /(.{3})/g ;
    
    say dump(@strings);
    
  2. or download this
    ("CTT", "CGA", "ATT")
    

Log In?
Username:
Password:

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

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

    No recent polls found