>I'm new to perl, but have a background in C.

>Can someone tell me what is the difference between 'use' and 'require'?  When do you
>use one and not the other?  Seems they both are comparable to a C header file (.h).

>Thanks in advance.....

use is resolved during compile time whereas require is resolved during run 
time(execution).
Use is analogous to using require within BEGIN { }. You can use require anywhere in 
your code to do a lazy pull in of the required module. 
 

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

Reply via email to