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