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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Advice on style
by afoken (Chancellor) on Nov 25, 2010 at 16:21 UTC | |
Re: Advice on style
by chrestomanci (Priest) on Nov 25, 2010 at 16:01 UTC | |
by GrandFather (Saint) on Nov 26, 2010 at 00:01 UTC | |
Re: Advice on style
by JavaFan (Canon) on Nov 25, 2010 at 16:24 UTC | |
Re: Advice on style
by fisher (Priest) on Nov 25, 2010 at 14:12 UTC | |
by Anonymous Monk on Nov 25, 2010 at 15:17 UTC | |
Re: Advice on style
by Anonymous Monk on Nov 26, 2010 at 03:31 UTC | |
by afoken (Chancellor) on Nov 26, 2010 at 10:13 UTC | |
by yitzchak (Sexton) on Nov 26, 2010 at 20:40 UTC | |
by Discipulus (Canon) on Jul 07, 2015 at 08:05 UTC | |
by afoken (Chancellor) on Jul 08, 2015 at 11:05 UTC | |
by Anonymous Monk on Nov 26, 2010 at 10:36 UTC |
Back to
Seekers of Perl Wisdom