I might be wrong here but use and require both do basically the same thing ...
they check to see if the module has been included before and if it has not
then it reads it in.  the difference is in the usage ... require takes a
complete path to the actual module file and use just takes the module name.

On Fri, Nov 16, 2001 at 05:37:30AM -0800, Ray Murphy shaped the electrons to read:
> Hello,
> 
> When using modules, is it better to say 'use
> Foo::Bar;' rather than 'require'.  Also I've noticed
> that some people put their 'use' or 'require'
> statements in subroutines and not at the beginning of
> the program - what benefits does this serve - conserve
> memory because as soon as you've left the routine the
> module goes bye bye (guessing)??  But surely the
> library would have to compile everytime the subroutine
> would be called and therefore slow the program down
> somewhat (again, guessing).
> 
> Thanks for your help.
> 
> Ray Murphy.
> 
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to