|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Help with placing the matches of a regex into an Arrayby ww (Chancellor) |
| on Apr 28, 2012 at 17:05 UTC ( #967834=note: print w/ replies, xml ) | Need Help?? |
|
A sample of your data and verbatim reports on your messages (are you sure they're 'error' messages, rather than warnings?) would be a great help in finding a way to help you. But, that said, this is a llama-level primer-version of an approach to your titled issue:
Note that this pushes each capture to the array, rather than replacing the array repeatedly, thus preserving only the last. That's something which you might have spotted in the course of writing your question, had you provided the data. For the reasoning behind this, see Re: a bit of monastery zen. Update: One and all may consider this another illustration of the danger another Monk noted recently; the danger of keeping a tab open too long (long enough to answer a false alarm, in this case).
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||