Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Greeting, fellow monks,
I happen to start my modules like this:
since AFAIK, pragmas extend to the end of the file, while a file may contain multiple packages (which mine do, sometimes). So, most modules in the standard Perl distribution put the "package" on top. I know this is not a big issue, both syntactically and semantically, but still I would like to know your opionion about the "right" style to start a Perl package...use 5.010; use strict; use warnings; package Foo::Bar; use Data::Dumper; use IO::Handle; ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: A Matter of Style
by choroba (Cardinal) on Oct 22, 2012 at 19:20 UTC | |
by Anonymous Monk on Oct 22, 2012 at 19:30 UTC | |
Re: A Matter of Style
by tobyink (Canon) on Oct 22, 2012 at 20:27 UTC | |
Re: A Matter of Style
by Anonymous Monk on Oct 22, 2012 at 20:40 UTC |
Back to
Seekers of Perl Wisdom