in reply to Re^2: Create a constructor named the same as your package name!
in thread Create a constructor named the same as your package name!
That would be the same as:my $e = Example::Module();
So no, it doesn't work. I thought about it for a while... and I can't figure out a way around that corner case that doesn't break other class methods. Oh well... gotta say "new" sometime, I guess.my $e = "Example::Module";
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Create a constructor named the same as your package name!
by antirice (Priest) on Jul 03, 2004 at 06:16 UTC |