http://qs321.pair.com?node_id=241107


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.