Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Re: setting perl ENV from fileby halley (Prior) |
on Sep 16, 2003 at 17:05 UTC ( [id://291879]=note: print w/replies, xml ) | Need Help?? |
Assuming you have gotten $key and $value from the file, you could:
This would support an input file with two possible interpolations: It depends on the order of definition. You could iterate the replacement step across all strings until the keys stop changing, but that may raise new problems. --
In Section
Seekers of Perl Wisdom
|
|