Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Testing if a string is a substring

by gjb (Vicar)
on Jul 20, 2005 at 09:01 UTC ( #476432=note: print w/ replies, xml ) Need Help??


in reply to Testing if a string is a substring

The index functions is also your friend, see the relevant perldoc.

However, for serious work (i.e. long strings) you may want to have a look at the following book:

@BOOK{Gusf97,
  title = {Algorithms on strings, trees and sequences},
  publisher = {Cambridge University Press},
  year = {1997},
  author = {Dan Gusfield},
  address = {Cambridge},
}
or the BioPerl project.

Hope this helps, -gjb-


Comment on Re: Testing if a string is a substring
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2015-07-28 05:13 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 (252 votes), past polls