in reply to Re^2: A Class inside a Perl script?
in thread A Class inside a Perl script?
bless tells you why your program is looking for a package named Person. And don't, ever, use Switch. It is a bad idea to even mention in your source code, because it has nasty side-effects. If you use Perl 5.10, you can use the new given keyword instead, otherwise just use a chain of if..elsif..else or a dispatch table.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: A Class inside a Perl script?
by Bloodnok (Vicar) on Jun 02, 2009 at 13:21 UTC | |
Re^4: A Class inside a Perl script?
by kreetrapper (Scribe) on Jun 03, 2009 at 09:06 UTC | |
by LanX (Saint) on Jun 03, 2009 at 10:11 UTC |