in reply to Re: (tye)Re3: regexp searches over array slices
in thread regexp searches over array slices
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")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re4: regexp searches over array slices
by TheDamian (Vicar) on Nov 15, 2001 at 01:09 UTC | |
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 |