Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: look for substrings and getting their location

by ozone (Friar)
on May 09, 2004 at 11:55 UTC ( #351827=note: print w/replies, xml ) Need Help??


in reply to look for substrings and getting their location

A fun one is something like:
my $string = 'GUAUGUUUAACAGUGAUACUAAAUUUUGAACCUUUCACAAGAUUUAUCUUUAAAUA +UGUUAUGA'; my @pieces = split(/GUAUG/,$string,-1); print "count [", @pieces - 1, "]\n";
There you have the count and with a bit of math you can figure out the locations :-D

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2022-05-20 22:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?