Hi, require $file is like do $file, except the former: checks for redundant loading, skipping already loaded files. raises an exception on failure to find, compile, or execute $file.
use Module is like require Module, except the former: loads the module at compile time, not run-time. imports symbols and semantics from that package to the current one. Thanks, Gopal R. --- Practical Perl <[EMAIL PROTECTED]> wrote: > Could anyone tell me what's the difference between > 'use' and 'require'? > And,is there any difference for these two > statements? > > use Exporter (); > require Exporter; > > Thank you. > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>