in reply to Re^5: Exporter. Correct way to override import? (archaic perldoc)
in thread Exporter. Correct way to override import?
The Exporter POD also includes (in the Good Practices section no less):
When using Exporter with the standard strict and warnings pragmas, the our keyword is needed to declare the package variables @EXPORT_OK, @EXPORT, @ISA, etc.
our @ISA = qw(Exporter); our @EXPORT_OK = qw(munge frobnicate);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Exporter. Correct way to override import? (archaic perldoc)
by ikegami (Patriarch) on May 07, 2018 at 20:28 UTC |