in reply to
Can't call method on an undefined value?
Your code should work fine, if you add a ; after
use Employee
and a
my
before
$name = $person->name;
.
Boris
Comment on
Re: Can't call method on an undefined value?
In Section
Seekers of Perl Wisdom