Object constructors are generally called as class or objects methods Test->new([args])There's only one object constructor in Perl, and it's called bless. Test->new is nothing more than a class method, that just happens to return an object, often of the same class. More often than not, programmers decide said new() creates a brand-spanking new object, which gets initialized as well. These programmers make it hard to do MI.
In reply to Re^2: Correct idiom for default parameters
by JavaFan
in thread Correct idiom for default parameters
by mrider
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |