G'day edict,
Welcome to the monastery.
Take a look at the Perl style guide for some general guidelines on formatting your code.
With the specific code you posted, you're returning from the subroutine before the last two statements are run. You probably want something closer to this:
sub get_loc { ... my @loc = ... $sth->finish; $dbh->disconnect ... return @loc; }
-- Ken
In reply to Re: DBI Style Inquiry
by kcott
in thread DBI Style Inquiry
by edict
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |