If you make the 'Primary' object a singleton then you can whip it up whenver you like:
my $primary = Primary->instance; my $name = $primary->name; # or if you only need one item from it my $name = Primary->instance->name;
See code implementing a singleton at Re: how to make a universally inherited method?
Chris
M-x auto-bs-mode
In reply to Re: Cross-Package/Object Communication
by lachoy
in thread Cross-Package/Object Communication
by billyak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |