![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: grep { $var } @arrby igelkott (Priest) |
on Jul 21, 2014 at 07:10 UTC ( #1094427=note: print w/replies, xml ) | Need Help?? |
/$pat/g Perhaps I've misunderstood but with my current $var, using /$pat/g will result in no matches (with or without the 'g' modifier). As far as I know, this will look for the literal string of '$_ < 3' on my array, as written below (appending to the initial script).
This finds none of the elements of @arr.
In Section
Seekers of Perl Wisdom
|
|