http://qs321.pair.com?node_id=217480


in reply to Prototypes allow overloading subs?

Greetings,

Mmmhhhh...
Not the java way for sure. If anything, I'd go the python way:

def foo(one,two=None,*args,**kwargs) : pass
So I can say:
foo(1) foo(1,2) foo(two=3,one=4,'fubar',three=42)
While perl's way may be too free form sometimes, trying to work around - for instance - C# idea of not allowing default values for arguments is a royal pain in the backend.
Cheers,
alf
You can't have everything: where would you put it?