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."
In reply to Re: Using a package within a package
by blue_cowdawg
in thread Using a package within a package
by Red Neckerson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |