more useful options | |
PerlMonks |
Re: grep with multiple choiceby ferreira (Chaplain) |
on Jun 11, 2007 at 11:55 UTC ( [id://620473]=note: print w/replies, xml ) | Need Help?? |
should be enough. There's nothing particularly different with this "grep with multiple choice". The only thing it seems you are missing is that the grep block can match different values provided you code a suitable matching sub, like I did with a regex. If your problem is really to find out the array elements starting with $s, this will work:
In Section
Seekers of Perl Wisdom
|
|