sub add_numbers { my ($self, @params) = @_; $self->{insert_num}->execute(@params); } sub vacuum { my $self = shift; $self->{db}->do('vacuum'); }
In reply to Re^3: Best practices for passing $dbh to subroutines
by choroba
in thread Best practices for passing $dbh to subroutines
by xtpu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |