in reply to Exporting use strict/warnings into main::
So you want to export your own symbols, using Exporter's import capabilities and strict/warnings...
In that case, you should not import Exporter's import method, but roll out your own - and call the original afterwards, like this:
use Exporter; sub import { strict->import; warnings->import; goto &Exporter::import; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Exporting use strict/warnings into main::
by nysus (Parson) on May 15, 2020 at 16:11 UTC |
In Section
Seekers of Perl Wisdom