in reply to dbCopy.pl
Your getData() subroutine could also be written this way. It may be just a matter of taste...
sub getData { my ($sql,$dbHash) = @_; return $dbHash->{connect}->selectall_arrayref($sql); } [download]
--Dave