The reasons behind why to use a hash of named arguments as a subroutine parameter is discussed in Perl Best Practices, Chapter 9, "Use a hash of named arguments for any subroutine that has more than three parameters". Luckily, Chapter 9 happens to be the free sample chapter from this book.
In reply to Re: Advantages to passing a hash to a subroutine?
by eyepopslikeamosquito
in thread Advantages to passing a hash to a subroutine?
by alliswell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |