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

Re: Flag variables

by blakem (Monsignor)
on Mar 03, 2003 at 10:58 UTC ( #239997=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (grep {$_ eq "foo"} @somearray) {
       someaction();
    }
    
  2. or download this
    someaction() if grep {$_ eq "foo"} @somearray;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2013-05-22 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (460 votes), past polls