alliswell has asked for the wisdom of the Perl Monks concerning the following question:
One advantage to passing a hash to a subroutine is that it can pass arguments in any order.
Is there any other reasons for using a hash instead of an array which would be helpful or a best practice? Why?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Advantages to passing a hash to a subroutine?
by tobyink (Canon) on Jun 18, 2012 at 21:05 UTC | |
by alliswell (Novice) on Jun 18, 2012 at 21:43 UTC | |
Re: Advantages to passing a hash to a subroutine?
by toolic (Bishop) on Jun 18, 2012 at 20:47 UTC | |
by alliswell (Novice) on Jun 18, 2012 at 21:10 UTC | |
by alliswell (Novice) on Jun 18, 2012 at 21:16 UTC | |
Re: Advantages to passing a hash to a subroutine?
by eyepopslikeamosquito (Archbishop) on Jun 19, 2012 at 08:20 UTC | |
by alliswell (Novice) on Jun 22, 2012 at 15:00 UTC |
Back to
Seekers of Perl Wisdom