On Sun, Nov 23, 2008 at 20:07, John W. Krahn <[EMAIL PROTECTED]> wrote:
snip
>> checkfile($flag);
>> sub checkfile {
>> use File::Find;
>> use File::MMagic;
>> use FileHandle;
>
> use() happens at compile time so there is no point, but no harm, to put
> these inside a subroutine.
snip
This is not 100% true. Some calls to use are lexically scoped (the
documentation on the individual modules/pragmas will tell you). Of
course, none of these are lexically scoped, so your point holds here.
--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/