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

Re: Efficient walk/iterate along a string

by jwkrahn (Monsignor)
on Nov 23, 2010 at 01:00 UTC ( #873087=note: print w/ replies, xml ) Need Help??


in reply to Efficient walk/iterate along a string

I don't know if this is faster but you could try substr with references, for example:

for my $i ( 0 .. $max ) { my $c = \substr( $protein, $i, 1 ); # Process $$c etc etc }


Comment on Re: Efficient walk/iterate along a string
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2015-07-29 11:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls