in reply to Escaping and quoting ?????
causes the shell to re-interpolate the contents of $SQL, because you use double quotes.@Output = qx { /nz/kit/bin/nzsql -d histdb -c "$SQL1" };
You could either pass single quotes to the shell, or add another "\\" before each dollar sign in the contents of $SQL. I'd suggest:
@Output = qx { /nz/kit/bin/nzsql -d histdb -c '$SQL1' };
What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
-Larry Wall, 1992
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Escaping and quoting ?????
by pgduke65 (Acolyte) on Jul 03, 2014 at 16:29 UTC |