in reply to Perl OO: switch package context.
Here's how it's used:
use Package::Relative; my $object = (PKG . "Class")->new; # your example my $object = (PKG . "..::Class")->new; # more interesting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl OO: switch package context.
by samtregar (Abbot) on May 15, 2005 at 20:30 UTC | |
by nothingmuch (Priest) on May 16, 2005 at 11:34 UTC | |
|
Re^2: Perl OO: switch package context.
by gaal (Parson) on May 15, 2005 at 17:16 UTC |