in reply to Writing a Perl Module... problems
Your code should work as planned when called as Name::Name->new()
Class->method() works differently from Class::method only in that:
1) Class->method(@args) respects inheritance.
2) Class->method(@args) inserts "Class" as the first argument while Class::method() does not.
update: most people expect new() to be the constructor so it should return $self.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Writing a Perl Module... problems
by cosmicperl (Chaplain) on Sep 15, 2007 at 03:01 UTC | |
by naikonta (Curate) on Sep 15, 2007 at 16:02 UTC |