in reply to Strict and warnings: which comes first?
I usually make those the first two non-comment non-blank lines in the file; and I put use strict; first as a matter of aesthetic taste — that both puts them in alphabetical order and gives a nice visual lead towards the right, where the later use statements are likely to end, since most module names are longer than warnings.
Example:
use strict; use warnings; use Storable;
Some very useful modules break this pattern:
use strict; use warnings; use DBI; use Tk;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Strict and warnings: which comes first?
by tobyink (Canon) on Nov 08, 2019 at 12:47 UTC | |
by jcb (Parson) on Nov 09, 2019 at 00:25 UTC | |
by tobyink (Canon) on Nov 09, 2019 at 14:54 UTC | |
by jcb (Parson) on Nov 10, 2019 at 00:00 UTC | |
by haj (Vicar) on Nov 09, 2019 at 15:51 UTC | |
by BillKSmith (Monsignor) on Nov 22, 2019 at 23:57 UTC | |
by tobyink (Canon) on Nov 23, 2019 at 10:07 UTC |
In Section
Past Polls