Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to How to use Substr to bulk substitutions?

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

  • Comment on Re: How to use Substr to bulk substitutions?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11100118]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (None)
    As of 2024-04-25 01:43 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found