I'm not sure why you want to return a hash instead of a reference, but there's no need to create %ref or %rec.
$dbh->disconnect(); return %$rec_ref unless $rec_ref->{company} eq ''; return undef;
In reply to Re: Re: Re: Dereferencing hashrefs
by CharlesClarkson
in thread Dereferencing hashrefs
by schnarff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |