in reply to Re^5: Perl CGI and SQL statements
in thread Perl CGI and SQL statements

In order for your variables to be interpolated, you must used double-quotes instead of single quotes (or none at all in this case would do as well).

$db->Sql($SqlStatement);

or possibly:

$db->Sql("$SqlStatement");

Either of those ought to work. I take it there is no return value to the Sql method, or perhaps you should be capturing that return?


No good deed goes unpunished. -- (attributed to) Oscar Wilde