I do this exact thing, however, I retrieve the variables in my sub thusly:
test($q,$dbh); sub test { my ($q,$dbh)=@_; #stuff in here }
In reply to Re: Passing DBH into sub
by Hero Zzyzzx
in thread Passing DBH into sub
by legLess
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |