in reply to Re: Class::Std singletons
in thread Class::Std singletons
Doesn't work -- "Can't locate object method "get_manager" via package "AAPA::Manager" at ../AAPA/Ship.pm line 25." Fair enough, since get_manager's supposed to be a _class_ method. I just can't figure out how to tell Class::Std that...sub get_manager { $manager = AAPA::Manager->new(); $manager->set_galaxy(AAPA::Galaxy->new()); return $manager; }
|
|---|