Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: MySQL INSERT in Perlby NetWallah (Canon) |
on Aug 04, 2011 at 17:46 UTC ( [id://918605]=note: print w/replies, xml ) | Need Help?? |
OK - strict, did identify your problem, which does indeed show a scoping issue. 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 ? 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 Section
Seekers of Perl Wisdom
|
|