Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: multiple (different) substitutions on same $foo

by esh (Pilgrim)
on Aug 22, 2003 at 08:01 UTC ( [id://285710]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: multiple (different) substitutions on same $foo
in thread multiple (different) substitutions on same $foo

If your code is as simple as the sample you presented (three substitutions), then I believe your original style is probably faster and much clearer than the other alternatives proposed.

If you actually have dozens of substitutions to make, then I think it may be worth trying out one of the abstractions offered, though performance should be tested if it is a possible concern.

-- Eric Hammond

Replies are listed 'Best First'.
Bubba is Confused
by Arbogast (Monk) on Aug 22, 2003 at 16:06 UTC
    Why would you want to change the code??? Why change something that works and is so simple a Shade Tree Coder with an Elementary School Diploma (<<< that would be me) can follow it??? Isn't that by definition excellent code???
      Hello Arbogast,

      I'm interested in doing it differently because I have in the order of 60 substitutions to do to as many variables. I may therefore have given the wrong impression by oversimplification but I feel that I have been given all the information I need to proceed with confidence, so I am very happy with the outcome.

      Thanks to all who have provided input to this question.

      jonnyfolk

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 22:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found