Here's how it's used:
use Package::Relative; my $object = (PKG . "Class")->new; # your example my $object = (PKG . "..::Class")->new; # more interesting
In reply to Re: Perl OO: switch package context.
by nothingmuch
in thread Perl OO: switch package context.
by sorhed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |