There's more than one way to do things | |
PerlMonks |
Re: Use method/function signatures with Perlby rinceWind (Monsignor) |
on Dec 06, 2004 at 13:09 UTC ( [id://412642]=note: print w/replies, xml ) | Need Help?? |
With the code as written, all of those method calls would "succeed" and silently DWIDM (do what I don't mean.) This is a pernicious source of bugs. In fact, there's a lot of debate in the Perl community about whether or not it's worth putting in a lot of extra checks in the code to protect against this.This is one of the reasons I like Params::Validate. You can put as much or as little validation rules as you want. --
In Section
Meditations
|
|