perlquestion
ftforger
<p>I have a script something like this (I know this doesn't
work, this is just a rough sample)</p>
<code>
$v1="user_value1";
open(INFILE,"<template.file");
$input=<INFILE>;
eval $input;
$line = "$input";
close(INFILE);
print "$line\n";
</code>
<p>
with the contents of "template.file" being</p>
<code>
thing1 type1 $v1
</code>
<p>
What I want is when the script runs, the print would
produce:
</p>
<code>
thing1 type1 user_value1
</code>