Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Find and Replace with special charactersby wrog (Friar) |
on May 07, 2015 at 08:59 UTC ( [id://1125974]=note: print w/replies, xml ) | Need Help?? |
You also want to make up your mind on whether @lines is being modified in place. If so, then you don't need @newlines at all and it's just
Otherwise, if you need to keep both versions around, then it's (it being somewhat more efficient to allocate @newlines in one swell foop).
In Section
Seekers of Perl Wisdom
|
|