Re: require or use

2006-05-09 Thread Gopal Krishnan
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, n

Re: require or use

2006-05-09 Thread Paul Johnson
On Tue, May 09, 2006 at 03:16:45PM +0800, Practical Perl 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; I think that "perldoc -f use" should tell you everything you

require or use

2006-05-09 Thread Practical Perl
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.