I have read the docs but I'm still not quite clear on the difference between
use and require and if either is even needed.  

I just moved some code from one module to another.  The orignal module has use
Net::SMTP in it, but the module I moved the code to does not (it does use the
first module though).  I forgot to put the use line in the second module, but
the code still works (I fully qualify it like my ${smtp} = new Net::SMTP(
${params{'server'}} );.  Does that mean I don't need the use statements
anywhere if I fully qualify?  or does it work only because the second module
uses the first module that uses Net::SMTP?

I would like to avoid use statements if possible since they can result in
compiler warnings about circular references and it seems to parse the library
even when it doesn't need to, which seems like a performance concern.

Any light anyone could shed on all this would be greatly appreciated.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to