The first thing that comes to mind for me is the potential scoping issues around the $sth_subj variable. Basically, I'm wondering if the $sth_subj in execute_subject_query is actually the same one as in the code above it. Are you using the strict and warnings pragmas?
use strict; use warnings;
If you're not, make sure you include them at the top of your script and if my hunch is right, you'll see some errors. Also, to avoid problems with things like this, it's also generally good to avoid using global variables in this manner because it's much clearer what's going on. For example, in this case, I would pass $sth_subj in as an argument to the execute_subject_query subroutine so it's clear where it's coming from.
perl -e 'split//,q{john hurl, pest caretaker}and(map{print @_[$_]}(joi +n(q{},map{sprintf(qq{%010u},$_)}(2**2*307*4993,5*101*641*5261,7*59*79 +*36997,13*17*71*45131,3**2*67*89*167*181))=~/\d{2}/g));'
In reply to Re: PERL DBI and oracle
by agianni
in thread PERL DBI and oracle
by hakiran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |