in reply to Re: Re: passing subroutine args as a hash: why not?
in thread passing subroutine args as a hash: why not?
Calling this and screwing up the assignment to var3 via the function call is quite hard. It's called protecting the developer from shooting himself in the foot.sub somethingComplicated() { my( $var1, $var2, $var3, $var4 ) = @_; }
|
|---|