in reply to Re^2: Why won't a hash in a hash work as a hash reference to create an object?
in thread Why won't a hash in a hash work as a hash reference to create an object?

It's the name of the class. If you call new as a method:

my $obj = Class->new;

... then it'll be the invocant.

(Don't not call new as a method. You set yourself up for all kinds of mess that way.)


Improve your skills with Modern Perl: the free book.