You could just as easily return an anonymous hash:
sub foo{ return ( bar => 'baz' ); }
That is not a hash, but a list (in fact all subs only return lists) suitable for being assigned to a hash, period.
In reply to Re^2: Anonymous Data Structures
by blazar
in thread Anonymous Data Structures
by PerlPhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |