package A; use strict; our (@ISA,@EXPORT); require Exporter; @ISA = qw(Exporter); @EXPORT = qw( abc ); #................ # Some code here #................ 1;
############################################
While 'use' is compile-time loading, 'require' has run-time loading. but the 'import()' function is provided by the Exporter in run-time itself. So what is the thing which 'use A;' loads in at compile time ? as it does not have the import() method yet so it cannot load in the modules. Can anybod explain me what exactly is going on here ?In reply to loading modules using 'use' by angshuman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |