in reply to Perl modules, Exporter, and @EXPORT vs. @EXPORT_OK
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl modules, Exporter, and @EXPORT vs. @EXPORT_OK
by LanX (Saint) on Jul 23, 2022 at 23:59 UTC | |
by ibm1620 (Hermit) on Jul 24, 2022 at 03:07 UTC |