Two, maybe. The class name and one argument, unless all arguments fit into an array.
That aside, I only use named arguments like you describe for classes based on a hashref. That way I can say,
or whatever elaboration of that is needed.sub new { my $class = shift; bless {@_}, $class; }
After Compline,
Zaxo
In reply to Re: named arguments
by Zaxo
in thread named arguments
by spurperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |