Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by pvaldes (Chaplain)
on Nov 25, 2011 at 12:37 UTC ( [id://940045]=note: print w/replies, xml ) Need Help??


in reply to Fast Way to Split String in to Chunk of Equal Length

note also that in this code the last non-triplet is silently discarded.

my $seq = qw(CCCTCTCTCCCAGGGGCAAA); prints: CCC TCT CTC CCA GGG GCA AA discarded
This could be, or not, what you want, so maybe you'll need to fix this

Log In?
Username:
Password:

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

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

    No recent polls found