in reply to How can I avoid creating two instances of the same object
Regardless, though, you're going to have to load each module you want to use. Maybe not at startup, but somewhere in your code, before you access any of its methods.# If $i were a RichMan: # $i->deedle; # But since $i isn't: RichMan::deedle($i);
Update: Oh, I'd forgotten about specifying methods that don't belong to the object. That's the way to go:
$i->RichMan::deedle;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I avoid creating two instances of the same object
by beachguy82 (Novice) on Mar 02, 2006 at 16:41 UTC | |
by Roy Johnson (Monsignor) on Mar 02, 2006 at 18:01 UTC |