in reply to Re^4: Exporter. Correct way to override import? (archaic perldoc)
in thread Exporter. Correct way to override import?
Unfortunately do the perldocs often reflect only an archaic Perl.
Again, not so. Exporter includes
package YourModule; use Exporter 'import'; # gives you Exporter's import() method directly @EXPORT_OK = qw(munge frobnicate); # symbols to export on request
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Exporter. Correct way to override import? (archaic perldoc)
by hippo (Archbishop) on May 07, 2018 at 08:53 UTC | |
by ikegami (Patriarch) on May 07, 2018 at 20:28 UTC | |
|
Re^6: Exporter. Correct way to override import? (archaic perldoc)
by LanX (Saint) on May 07, 2018 at 00:39 UTC |