http://www.perlmonks.org?node_id=413069


in reply to Re: Use method/function signatures with Perl
in thread Use method/function signatures with Perl

Actually, the better parameter checking is merely to enforce traditional multi-method dispatch. You have a great point about Ruby's duck typing. If you don't care about types, just don't use Sub::Signatures 'strict' mode and dispatch will be based on the number of arguments and type will be ignored.

Cheers,
Ovid

New address of my CGI Course.

  • Comment on Re^2: Use method/function signatures with Perl