perldata says your typeglob method "used to be the preferred way to pass arrays and hashes by reference into a function, but now that we have real references, this is seldom needed." And, "Much safer is to use a reference."
And your typeglob method doesn't play nicely with strict and warnings, while the reference method does.
And for opinion, I think the reference method is absolutely clear; while the * introduces a bit of mystery.
In reply to Re: Passing hash reference to a subroutine
by hbm
in thread Passing hash reference to a subroutine
by tlk00
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |