Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: want regex to find 2nd and 3rd occurence of a characterby toolic (Bishop) |
on May 22, 2008 at 19:15 UTC ( [id://688022]=note: print w/replies, xml ) | Need Help?? |
I agree with moritz in that you might want to use another approach now that you have your string split into an array.
This sounds like it might be a job for List::MoreUtils:
prints:
Is that what you are looking for for question #1? If so, I think you can use the natatime function to also solve #2. Update: OP has been updated.
In Section
Seekers of Perl Wisdom
|
|