Perl: the Markov chain saw | |
PerlMonks |
Re^5: Capturing regex from mapby Laurent_R (Canon) |
on Sep 14, 2013 at 13:40 UTC ( [id://1054109]=note: print w/replies, xml ) | Need Help?? |
Yes, you are absolutely right, this is definitely one of the main reasons why it is not clean in my mind (and I upvoted your comment). But you can also make a temporary copy if you want to keep the original array intact, no big deal if the data is nor too large. But again, I am not suggesting this as a good solution. It might just be a possible useful alternative in some edge cases or very specific context, although I fail to see any.
In Section
Seekers of Perl Wisdom
|
|