use csLogs::Error qw(a b) expands to:
which expands to:BEGIN { require csLogs::Error; import csLogs::Error qw(a b); }
and that last line eventually becomes something like one of these:BEGIN { require "csLogs/Error.pm"; csLogs::Error->import( qw(a b) ); }
So "csLogs::Error" is used both to find the Error.pm file and to find import(). So you need to get it right. Unfortunately, there is really no enforcement that the file csLogs/Error.pm defines a csLogs::Error::import() or sets @csLogs::Error::ISA= qw(Exporter) and @csLogs::Error::EXPORT.Exporter::import( "csLogs::Error", qw(a b) ); UNIVERSAL::import( "csLogs::Error", qw(a b) );
It would be nice if UNIVERSAL::import() complained about such things so you might find Universally unimportant and overused useful (and important).
- tye (but my friends call me "Tye")In reply to (tye)Re2: Symbols not importing/exporting correctly
by tye
in thread Symbols not importing/exporting correctly
by AidanLee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |