This gives the same result as calling using the Foo->new syntax.sub new { my $class = shift @_ || __PACKAGE__; ... }
"Man cannot live by bread alone...
He'd better have some goat cheese and wine to go with it!"
In reply to Re^3: Foo->new() vs. new Foo()
by NetWallah
in thread Foo->new() vs. new Foo()
by nmerriweather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |