in reply to Re: Re: Flag variables
in thread Flag variables
Now if grep were smart enough to shortcut when called in "boolean" context, then there would be no reason not to use it. Of course, "boolean" context per se won't exist until perl 6...
Until then, using first from List::Util is one alternative.
In Section
Seekers of Perl Wisdom