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
In reply to Re: Escaping and quoting ?????
by NetWallah
in thread Escaping and quoting ?????
by pgduke65
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |