Think about Loose Coupling | |
PerlMonks |
Re: Default subroutine parametersby Popcorn Dave (Abbot) |
on Apr 23, 2002 at 17:29 UTC ( [id://161380]=note: print w/replies, xml ) | Need Help?? |
Wouldn't it be a better idea to set all your default parametersin your subroutine and let the values be overwritten by the information you pass in? That way you always have your defaults.
In Section
Seekers of Perl Wisdom
|
|