Syntactic Confectionery Delight | |
PerlMonks |
Parsing variables from one file to another.by fatmcgav (Novice) |
on Jan 21, 2009 at 13:45 UTC ( [id://737818]=perlquestion: print w/replies, xml ) | Need Help?? |
fatmcgav has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I'm trying to get Perl to write the contents of a template file with $variables to another file, with those $'s expanded out... Currently, my function looks like this: The function call is: make_apachectl ( "/home/www/$dname/bin/apachectl", $dname ); The template file has the following variables set:
How do I get perl to expand out the $dname variables when printing from TEMPLATE to TARGET? Regards Gavin
Back to
Seekers of Perl Wisdom
|
|