in reply to Advantages to passing a hash to a subroutine?
foo('','','',123); # array
Another advantage is that the arguments are self-documenting with a hash.
Also consider passing your hash by reference.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Advantages to passing a hash to a subroutine?
by alliswell (Novice) on Jun 18, 2012 at 21:10 UTC | |
by alliswell (Novice) on Jun 18, 2012 at 21:16 UTC |