Perl Monk, Perl Meditation | |
PerlMonks |
What's the best way to convert a non interpolated single-quoted string into an interpolated double-quoted string?by emilbarton (Scribe) |
on Mar 15, 2012 at 19:50 UTC ( [id://959845]=perlquestion: print w/replies, xml ) | Need Help?? |
emilbarton has asked for the wisdom of the Perl Monks concerning the following question: I was trying to make a module less private replacing my own path in a config file by an '$ENV{HOME}/path' when I realised that I wasn't able to convert it easily, after XML import, to an "$ENV{HOME}/path" interpolative context. First I thought I had forgotten some basic trick, but chatter box friends advise to use regex or to investigate more. How would YOU do?
Back to
Seekers of Perl Wisdom
|
|