Perl Monk, Perl Meditation | |
PerlMonks |
Get variables from txt fileby Anonymous Monk |
on Aug 28, 2014 at 16:15 UTC ( [id://1098882]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Hi, I have written a perl script but I don't know how to get the variables from a txt file. Actually, I can read the txt file in hash and get the variables but I have a small issue. In the txt file I have some paths that include variables. The txt file with the variables looks like:
I read the lines using:
The result that I get is:
but I want
I would appreciate any help.
Back to
Seekers of Perl Wisdom
|
|