in reply to Re: Advantages to passing a hash to a subroutine?
in thread Advantages to passing a hash to a subroutine?

Thank you toolic

Can you give an example on how the arguments are self-documenting as compared to not using a hash?

Thank you!

  • Comment on Re^2: Advantages to passing a hash to a subroutine?

Replies are listed 'Best First'.
Re^3: Advantages to passing a hash to a subroutine?
by alliswell (Novice) on Jun 18, 2012 at 21:16 UTC

    I think I see the example of the self-documenting hash from tobyinc. It makes it more clear.

    perform_wedding( official => $smith, wife => $jones, husband => $brown, );