No such thing as a small change | |
PerlMonks |
Re: A Class inside a Perl script?by arc_of_descent (Hermit) |
on Jun 02, 2009 at 09:24 UTC ( [id://767518]=note: print w/replies, xml ) | Need Help?? |
You're package is named test, but you are blessing into Person. You should use the following constructor in your packages, which takes care of inheritance too.
-- Rohan
In Section
Seekers of Perl Wisdom
|
|