Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 surveying the Monastery: (5)
As of 2024-04-23 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found