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

Re: Problem in "index" function in recognizing repeating substrings

by Tanalis (Curate)
on Sep 02, 2005 at 09:35 UTC ( #488587=note: print w/ replies, xml ) Need Help??


in reply to Problem in "index" function in recognizing repeating substrings

index accepts a position to start from as a third argument. If you track $id to figure out where in the string you are, you should be able to avoid matching the first instance repeatedly.

See the docs for more information.


Comment on Re: Problem in "index" function in recognizing repeating substrings
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2015-01-25 23:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (186 votes), past polls