in reply to Re^2: Passing Hashes
in thread Passing Hashes

"I generally don't code object type code"

But that's not the point. Same rule applies here, which has nothing to do with OO:

use Data::Dumper; use strict; use warnings; my $dat = do_this(); print Dumper($dat); sub do_this { my %dat = ("a", 1, "b", 2); return \%dat; }