That probably means that you need to use an explicit superposition to get the effect you want:
if (any(@var ^=~ /baz/)) {...}
or:
if (any(@var) =~ /baz/) {...}
(Though I will hint darkly at other possibilities that the Perl 6 design team are tossing about -- such as unification of hyperoperators and superpositions!)
In reply to Re: (tye)Re4: regexp searches over array slices
by TheDamian
in thread regexp searches over array slices
by Reverend Phil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |