Just another Perl shrine | |
PerlMonks |
Re: searching in arrayby kwoff (Friar) |
on Dec 10, 2001 at 21:52 UTC ( [id://130723]=note: print w/replies, xml ) | Need Help?? |
I assume you meant
In that case, you can use grep Or you could use a foreach loop, push onto either of two arrays depending on the match, then join afterward.
In Section
Seekers of Perl Wisdom
|
|