On 7/18/05, Ron Smith <[EMAIL PROTECTED]> wrote:
> my $sql = "INSERT INTO products VALUES ('$sku', '$partNum', '$name',
> '$descr', '$stockNum', '$qty', '$img', 'vendNum', '$price')";
Beware of the difference of double and single quotes in Perl. Double
quotes interpolate:
$a = 3;
print "a: $a\n" # prints 'a: 3' and a new line
Single quotes don't interpolate neither do common escapes like "\n"
print 'a: $a\n' # prints 'a: $a\n"
Regards,
Adriano.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>