in reply to Variable interpolation in a file to be read in
You can always use eval if the text does not contains any other characters that double quoted strings handle specially (e.g. ['%@])
if (($begin_sql == 1) && ($end_sql != 1)) { my $interpolated = eval(qq/$_/); $sql .= $interpolated; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Variable interpolation in a file to be read in
by Anonymous Monk on Oct 07, 2011 at 02:43 UTC |
In Section
Seekers of Perl Wisdom