in reply to (tye)Re4: regexp searches over array slices
in thread regexp searches over array slices
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!)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re5: regexp searches over array slices
by tye (Sage) on Nov 15, 2001 at 01:40 UTC | |
by TheDamian (Vicar) on Nov 16, 2001 at 01:34 UTC | |
by japhy (Canon) on Nov 16, 2001 at 01:46 UTC |