Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Executing a program from within a Perl Module in a non-standard path

by tobyink (Canon)
on Mar 20, 2013 at 15:30 UTC ( [id://1024546]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Executing a program from within a Perl Module in a non-standard path
in thread Executing a program from within a Perl Module in a non-standard path

"As an aside, I can't understand how import doesn't get itself in an infinite loop!"

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1024546]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-19 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found