in reply to Re: Understanding use and require fully
in thread Understanding use and require fully
use Module LIST is equivalent to: BEGIN { require Module; import Module LIST; }
Nit: it's actually equivalent to:
BEGIN { require Module; Module->import( LIST ); }use always performs a method call, where the indirect invocation form you had sometimes does not perform a method call. (If you want to be very specific, it's probably closer to Module::->import( LIST ), but you have to read the code to Perl_utilize() in C to make sure of that.)
|
---|
In Section
Seekers of Perl Wisdom