Hello everyone
I Have a problem with a Perl script that reads a line from a file which has variable names in it and when it prints the variable names are printed as a literal.
i.e.:
the line in the file:
$var01 blah blah blah $var02 blah blah
in the script:
$var01 = "name1";
$var02 = "name2";
...
$line1 = <INF>;
...
print "<P> $line1 </P>";
this prints the line just as is in the file:
<P> $var01 blah blah blah $var02 blah blah </P>
Is there a way to make the script print the contents of the variables instead of just the variable itself?
What I need is:
<P> name1 blah blah blah name2 blah blah </P>
Could anyone be so kind as to help me with this?
Thank you in advance for your cooperation