Just another Perl shrine | |
PerlMonks |
Re: most terse regex match countby haukex (Archbishop) |
on May 16, 2019 at 15:32 UTC ( [id://11100101]=note: print w/replies, xml ) | Need Help?? |
Is it possible to force list context in a conditional? A variation of the "Saturn" operator does the trick: if ( 2 == ( () = $outs =~ m|A|gs ) )
In Section
Seekers of Perl Wisdom
|
|