Just another Perl shrine | |
PerlMonks |
Re: Problem with pattern matchby George_Sherston (Vicar) |
on Jul 09, 2002 at 22:10 UTC ( [id://180629]=note: print w/replies, xml ) | Need Help?? |
If you're ever likely to want to pull out different ones from the list, you might like to take advantage of the fact that, in array context, a pattern match returns a list of everything that was captured. So
... will print out the one you want, but also leave you with an array with all the others in it as well. § George Sherston
In Section
Seekers of Perl Wisdom
|
|