more useful options | |
PerlMonks |
Re: Re: Re: pattern matchingby Basilides (Friar) |
on Aug 21, 2002 at 13:21 UTC ( [id://191723]=note: print w/replies, xml ) | Need Help?? |
For that, you'd want to use the global (/g) modifier on the end of your regex, and use the regex in a list context: @ids = m/:ID\s\d*/g
You'll need to do another regex to pull the P_IDs, For that, I guess you could use another regex, or, if the data is regular, something like:
In Section
Seekers of Perl Wisdom
|
|