in reply to Flag variables
How about:
foreach my $var (@somearray){ if($var eq "foo"){ &someaction; last;} }
|
---|
In Section
Seekers of Perl Wisdom