On 7/18/05, Adriano Ferreira <[EMAIL PROTECTED]> wrote: > Beware of the difference of double and single quotes in Perl. Double > quotes interpolate:
Oops. That's my mistake. Your single quotes are within double quotes. Let's try again. I would say that something is wrong here: my $sth = $dbh->prepare($sql); which probably returns undef to $sth and then you see the error you mentioned when invoking 'execute' over it. my $sth->execute; <=============line 21 Try telling DBI to raise errors so that you can see them as soon as they happen: my $dbh = DBI->connect("DBI:mysql:company", "username", "password", { RaiseError => 1}) 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>