use YourModule qw(...);This imports only the symbols listed by the caller into their namespace. All listed symbols must be in your @EXPORT or @EXPORT_OK, else an error occurs. The advanced export features of Exporter are accessed like this, but with list entries that are syntactically distinct from symbol names.
In reply to Re: Perl modules, Exporter, and @EXPORT vs. @EXPORT_OK
by choroba
in thread Perl modules, Exporter, and @EXPORT vs. @EXPORT_OK
by ibm1620
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |