Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Flag variables

by KPeter0314 (Deacon)
on Mar 03, 2003 at 15:35 UTC ( #240056=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    fooaction() if grep { $_ eq "foo" } @somearray;
    baraction() if grep { $_ eq "bar" } @somearray;
    
  2. or download this
    my $fooflag = 0;
    my $barflag = 0;
    ...
    
    if($fooflag eq "1"){ &fooaction;}
    if($barflag eq "1"){ &baraction;}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://240056]
help
Chatterbox?
[chacham]: The darkness here is quite natural. Sunset was 1.5 hours ago ...
LanX prefers blood moons

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2017-08-21 18:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (324 votes). Check out past polls.

    Notices?