Subject: | Import 'Exporter' directly without using 'base' |
In 0.02, the Exporter module is imported with the following line:
use base 'Exporter';
This does not matches the documented way of loading Exporter (see
https://metacpan.org/module/Exporter#SYNOPSIS ) and it makes use of
base.pm while this could be cleanly avoided.
Suggested patch:
- use base 'Exporter';
+ use Exporter 5.57 'import';
Advantages:
- one less module loaded (base.pm), less code compiled/processed
- avoids to load base.pm (an old module which is better replaced by
parent.pm for the most common use case)
- avoids to depend on base.pm for this distribution (META.yml)
--
Olivier Mengué - http://perlresume.org/DOLMEN