http://www.perlmonks.org?node_id=578774


in reply to Replacing environment variables

Hey
The following two nodes might help you...
http://www.perlmonks.org/?node_id=105795 http://www.perlmonks.org/?node_id=135922
Thanks & Regards
Sridhar

Replies are listed 'Best First'.
Re^2: Replacing environment variables
by Hofmator (Curate) on Oct 17, 2006 at 14:00 UTC
    You can make these linkable by writing [id://105795] like this: Environment Variables.

    And even rename them by writing [id://135922|Another node about Environment Variables]: Another node about Environment Variables.

    -- Hofmator

    Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Re^2: Replacing environment variables
by Errto (Vicar) on Oct 18, 2006 at 05:00 UTC
    I don't really see how either of these nodes is relevant to the problem, other than that they happen to have the words "Environment Variables" in their title. It sounds like the real question is how to perform substitution of placeholders for variables in text, where in this case the collection of values happens to be %ENV. There are some modules for this such as Text::Template though I personally have not used them.
Re^2: Replacing environment variables
by loris (Hermit) on Oct 18, 2006 at 06:50 UTC

    Hello Sridhar,

    Thanks for replying, but as Errto points out, neither of the nodes you mention has any relevance to my problem.

    The update to my original post shows how I am currently dealing with the situation and may help you to understand what I am trying to do.

    loris


    "It took Loris ten minutes to eat a satsuma . . . twenty minutes to get from one end of his branch to the other . . . and an hour to scratch his bottom. But Slow Loris didn't care. He had a secret . . ."