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

regexp question

by kidd (Curate)
on Aug 19, 2002 at 15:53 UTC ( #191209=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @query = ('red', 'blue', 'white');
    
    my $line = "That is a blue wall";
    
  2. or download this
    foreach my $query(@query){
      next if $query eq '';
            print "I found: $query" if $line =~ /\Q$query/;
         }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://191209]
Approved by Rex(Wrecks)
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2014-04-17 07:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (440 votes), past polls