in reply to Re^2: MySQL INSERT in Perl
in thread MySQL INSERT in Perl
Do you have BLOCKS in your code - i.e - segments of code enclosed in {curly braces} ?
Is the "my $ins_rec" line inside one of these blocks ?
If so, that variable is not visible outside the block - you need to move the "my" statement outside the block.
Please do yourself a favour and ALWAYS "use strict;" and "use warnings;". Professional programmers recommend this for very good reasons.
"XML is like violence: if it doesn't solve your problem, use more."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: MySQL INSERT in Perl
by baperl (Sexton) on Aug 04, 2011 at 17:55 UTC | |
by afoken (Chancellor) on Aug 04, 2011 at 19:40 UTC |