Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: RegEx and Packaging Name Problem

by Dru (Hermit)
on Oct 22, 2010 at 01:05 UTC ( #866683=note: print w/replies, xml ) Need Help??


in reply to RegEx and Packaging Name Problem

Also, your regular expression is wrong and it does not need to be in a while loop if it's just one long string.
print "Match found\n" if $dna1 =~ /\sCA[ACT]TC/g;

Thanks,
Dru

Perl, the Leatherman of Programming languages. - qazwart

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2018-07-19 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (405 votes). Check out past polls.

    Notices?