in reply to passing subroutine args as a hash: why not?

I've never seen a subroutine with 61 arguments in well designed or maintainable code.

Either some of those arguments are logically related, and therefore really a single argument with attributes, or this is going to be a very difficult subroutine to develop, test, and maintain.

61 arguments. I can think of 60 arguments why not to do that. {grin}

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: passing subroutine args as a hash: why not?