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

Re: Request to correct the perl code for getting substrings

by oldtomas (Novice)
on Apr 19, 2012 at 19:01 UTC ( [id://966033]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @d = “CCATGNNNTAACCNNATGNNTAGCC”;
    
  2. or download this
    my $string ="@d";
    
  3. or download this
    #!/usr/bin/perl -w
    my $string = "CCATGNNNTAACCNNATGNNTAGCC";
    while($string =~ /[AG]TG.*?[AG][AG]/g) {
      print "matched at ", pos($string) - length($&), ": ", $&, "\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-04-24 09:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found