in reply to Re: Re: Prototypes allow overloading subs?
in thread Prototypes allow overloading subs?
Other useful constructor names can be "new_from_file", "new_named", etc. That way, particularly when the arguments are called $a, $b, $c, you'll have documented what the (sometimes quite substantial) differences are between all the overloaded "new" methods.my $person = People->new()->etc... ... my $himagain = People->restore($id);
|
|---|