Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This is the section of the code that the error is referring to, it seems to be erroring when it enters it into mysql. $from, $url, $name are defined earlier in the script..Use of uninitialized value in concatenation (.) or string at /home/scr +ipt.pl line 48, <STDIN> line 20.
$mbody = $dbh->quote($body); $msubject = $dbh->quote($subject); my $rv = $dbh->do(qq{INSERT INTO table values ( "NULL", "ME", "testing", "$from", "$url", "$name", "3", "$category +", $msubject, $mbody)} );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Coding Errror
by dragonchild (Archbishop) on Dec 01, 2001 at 01:03 UTC | |
|
(jeffa) Re: Coding Errror
by jeffa (Bishop) on Dec 01, 2001 at 01:30 UTC | |
by Fastolfe (Vicar) on Dec 01, 2001 at 03:24 UTC | |
|
Re: Coding Errror
by blakem (Monsignor) on Dec 01, 2001 at 02:37 UTC |