It just imports the import() sub "by hand" from Exporter.pm.
use Common qw(Foo); becomes BEGIN { require "Common.pm"; Common->import("Foo") } and Common->import(...) can find the import() by inheritance (@ISA) or because Common::import itself has been defined. "Importing" just makes Common::import() another name for Exporter::import().
- tye
In reply to Re^5: Library file or module for sharing code? (import)
by tye
in thread Library file or module for sharing code?
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |