Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: substitution in a string

by pjf (Curate)
on Sep 28, 2005 at 09:03 UTC ( #495671=note: print w/ replies, xml ) Need Help??


in reply to Re: substitution in a string
in thread substitution in a string

This solution works a treat provided that there are no underscores as part of the environment value. Unfortunately, for many systems these are common as parts of pathnames. A variable such as oracle_home=/local_oracle/ would turn into oracle.home=/local.oracle/, which may not be desirable.

If you were to split the keys from the values beforehand, then a map is an excellent way to perform the alterations.

Cheerio,


Comment on Re^2: substitution in a string

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2014-08-31 06:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls