I'd like to open a file, which will contain some perl variables (e.g. $example), then print out the file, with
the variables expanded to their values. I'm guessing this is not anything new... the following code snippet doesnt do it (prints '$example' instead of 'this is an example')... advice?
$example = 'this is an example";
open(FILE, "file")||die("cant open file");
while(<FILE>) {
print "$_";
}
close(FILE);
}