If the results were aggregated into an array rather than a list, then japhy's greppish interpretation of if (@var ^=~ /baz/) {...} might well be correct, after all.
Except that, by giving a scalar context, the resulting array would be something like (undef,undef) which would still be "true".
- tye (but my friends call me "Tye")In reply to (tye)Re4: regexp searches over array slices
by tye
in thread regexp searches over array slices
by Reverend Phil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |