Do you know where your variables are? | |
PerlMonks |
Re: How to use Substr to bulk substitutions?by johngg (Canon) |
on May 16, 2019 at 18:46 UTC ( [id://11100118]=note: print w/replies, xml ) | Need Help?? |
As poj suggests, using reverse allows you to use the positions without any messy arithmetic. Here is an example from another thread. A similar approach can be useful when splice'ing several elements into different positions in an array. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|