Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I'm wondering if I should put the 'require Exporter' and related statements before the 'use' statements or the other way round:
# Exporter before use package Module1; require Exporter; our @ISA = qw(Exporter); our @EXPORT = qw(&fn1 &fn2); use Module2; use Module3; # use before Exporter package Module1; use Module2; use Module3; require Exporter; our @ISA = qw(Exporter); our @EXPORT = qw(&fn1 &fn2);
Is there any style that I should adopt here?
Back to
Seekers of Perl Wisdom