P is for Practical | |
PerlMonks |
Re: grep { $var } @arrby Athanasius (Archbishop) |
on Jul 17, 2014 at 14:56 UTC ( [id://1094069]=note: print w/replies, xml ) | Need Help?? |
Another option is to use a subroutine reference instead of a string:
Output:
Hope that helps,
In Section
Seekers of Perl Wisdom
|
|