|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: regexp questionby Abigail-II (Bishop) |
| on Aug 19, 2002 at 16:13 UTC ( #191223=note: print w/ replies, xml ) | Need Help?? |
|
By not being smart and wanting it in a single regexp. Use your foreach loop and a counter. Increment the counter for each match found, and compare after the loop whether the counter equals the size of the array. Or just bail out whenever there isn't a match, depending a bit on what exactly you want to do. Abigail
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||