Welcome to the Monastery | |
PerlMonks |
Re^2: grep { $var } @arrby Laurent_R (Canon) |
on Jul 17, 2014 at 18:55 UTC ( [id://1094110]=note: print w/replies, xml ) | Need Help?? |
Well, bulrush, you did not say how you populate $pat, but I fail to see how a regex would figure out whether a value is larger or smaller than 3.
I definitely agree that a subroutine reference is a very good solution, perhaps the best.
In Section
Seekers of Perl Wisdom
|
|