Do you have a question? Post it now! No Registration Necessary. Now with pictures!
January 5, 2012, 1:07 pm
rate this thread
Re: use statements in packages
No, it make no difference. Pragmas like 'strict' and 'warnings' are
lexically-scoped rather than package-scoped, so any code that follows
them in the file will be affected, regardless of which package it's in
(unless they're overridden with a 'no <foo>', of course).
I wouldn't write them like that, simply because I tend to put modules
like 'Carp' next to strict and warnings, and in that case it *does* make
a difference: if you 'use Carp' in the wrong package, the subs will be
exported to the wrong place.