more useful options | |
PerlMonks |
Re^3: Executing a program from within a Perl Module in a non-standard pathby tobyink (Canon) |
on Mar 20, 2013 at 15:30 UTC ( [id://1024546]=note: print w/replies, xml ) | Need Help?? |
System::Sub::Env::import is going to System::Sub::import. Different package; different sub. The reason for the goto is to hide System::Sub::Env::import from the call stack - System::Sub's import method looks at caller.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|