in reply to Cross-Package/Object Communication
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Cross-Package/Object Communication
by billyak (Friar) on Aug 21, 2002 at 15:53 UTC |