Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://873087]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2016-12-03 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (56 votes). Check out past polls.