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."
In reply to Re^3: MySQL INSERT in Perl
by NetWallah
in thread MySQL INSERT in Perl
by baperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |