Robert Hicks 写道:
Is @EXPORT_OK for those items you want to import by "name" and %EXPORT_TAGS for those items you want to group like :all or :select?


Almost right.

What is @EXPORT used for then if that is the case above?


@EXPORT was used for exporting symbol (methods or variables) by default.
When you say,
use base 'Exporter';
our @EXPORT = qw/&mysub/;
..
then mysub() would be exported into caller's name space defaultly.

--
http://home.arcor.de/jeffpang/

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to