On Thu, 21 Apr 2005 09:39:03 -0400, Chris Devers wrote:

> On Thu, 21 Apr 2005, Paul Kraus wrote:
> 
>> Not to sound daft but why would you want to do that? What would be 
>> gained or lossed. What would be an advantage of using require?
> 
> Normally, you wouldn't.
> 
> Think of 'require' as a vestigal organ from Perl4 that has little or no 
> purpose today with Perl5. 
> 
> For the most part, it's safe to pretend that 'require' doesn't exist.

Ahem.  It is most useful when I want to determine the module to load
dynamically, or when I want to load a module only if necessary to save the
time spent compiling it in the cases when it is not needed.

-- 
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/


-- 
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