Mind you, it's far from kosher to have functions that mess with its arguments. You save, what, five characters each function call? Try to do it how brx suggested.
sub bazify { my ($bar) = @_; return $bar->{baz}; } $ref = bazify($ref);
In reply to Re^3: Replace Hash-Ref with Array-Ref
by Anonymous Monk
in thread Replace Hash-Ref with Array-Ref
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |