in reply to Function overloading in perl
In perl, function overloading in the traditional sense - i.e. the same function works differently depending on context and parameters - is not perlish.
The distinguishing factor is that function parameters in perl are always @_, so there is no real way to do something different (other than "wantarray"), to implement traditional overloading.
Nor, do we feel there is any need. Could you explain what you are trying to do, so we can present perlish alternatives ?
..to maintain is to slowly feel your soul, sanity and sentience ebb away as you become one with the Evil.
|
|---|