in reply to Re^2: DBI not erroring out on Insert
in thread DBI not erroring out on Insert
Given the code and the (detail-challenged) problem description, there is a (small) chance that "the summarized code I am using" is:
In case 1, the error might be revealed to OP at his/her console.
In case 2 both cases, the fragment doesn't pass perl -c junk3.pl:
Scalar found where operator expected at F:\_Perl_\pl_test\junk3.pl lin +e 11, near "$query" (Missing semicolon on previous line?) syntax error at F:\_Perl_\pl_test\junk3.pl line 11, near "$query " F:\_Perl_\pl_test\junk3.pl had compilation errors.
which reveals the missing ";" just before OP's "#" at position (1 based) 82 in what I infer the OP is referring to when saying "It is just skipping over insert line like it didn't exist, "
Sometimes, an observation or question about these pragmata is not merely boilerplate nor blind kowtowing to conventional wisdom.
Update: s/case 2/both cases/ since the following statement is equally applicable in both cases.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: DBI not erroring out on Insert
by chromatic (Archbishop) on Sep 10, 2011 at 19:15 UTC |