You can forcibly export things with @EXPORT, or optionally with @EXPORT_OK. Then, when you import you have to ask for them, which is really the nice way to do it.use base 'Exporter'; our @EXPORT = qw[ functionA $variableB %mutantX ];
Simple enough, no?package Foo; use Bar qw[ functionA ]; functionA($something);
In reply to Re^2: How do I export methods and constants from a package module?
by tadman
in thread How do I export methods and constants from a package module?
by krisraman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |