in reply to Re: Location of 'use' statements
in thread Location of 'use' statements
Yep, Data::Dumper for example will complain (under -w) about printing to an unopened file handle if you say
use Data::Dumper; package Foobar; my $quux = {} print Dumper $quux;
The idea between the fourth approach is to separate those things must be imported into the package itself, versus those that can be left apart.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Location of 'use' statements
by demerphq (Chancellor) on Apr 19, 2003 at 11:30 UTC | |
by djantzen (Priest) on Apr 19, 2003 at 20:57 UTC |