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
    ... or even use an instance of the poor mans switch

    A user level that continues to overstate my experience :-))
Re^4: A Class inside a Perl script?
by kreetrapper (Scribe) on Jun 03, 2009 at 09:06 UTC
    And don't, ever, use Switch. It is a bad idea to even mention in your source code, because it has nasty side-effects.
    Could you expand on that or provide me with a link where I can find more on this?