"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; }
In reply to Re^3: Passing Hashes
by pg
in thread Passing Hashes
by ironcom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |