in reply to Re^4: Library file or module for sharing code? (import)
in thread Library file or module for sharing code?
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
|
|---|