in reply to Location of 'use' statements
package FooBar; ## Always used: use strict; use warnings; ## Other modules: require Some::OO::Module; use Some::Function::Module qw( Func1 Func2 ); ## Setup of this module: use base 'Quux'; use vars qw( $VERSION @EXPORT_OK ); $VERSION= 1.001; @EXPORT_OK= qw( ... ); ## Globals: use vars qw( $Master ); $Master= ...; use constant _IdNo => 0; use constant _Name => 1; use constant _Pos => 2; # Gee, we need "use enum" (:
with a general tendency to put shorter items before longer items first.
- tye
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Location of 'use' statements (mine)
by Aristotle (Chancellor) on Apr 19, 2003 at 15:40 UTC | |
Re: Re: Location of 'use' statements (tye)
by Anonymous Monk on Apr 21, 2003 at 19:24 UTC |