in reply to Using a package within a package

No the use is for the package itself and not the perl script invoking the package.

Just for grins I tried what you are attempting just to see what would happen and when I did a print header with my package having declared use CGI qw/:all/; Perl thought that "header" was a file handle.

That makes perfect sense to me....

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Peter L. Berghold --- Peter@Berghold.Net
"Those who fail to learn from history are condemned to repeat it."