FAQ
Author: comdog
Date: Tue Jan 29 16:38:10 2008
New Revision: 10671

Modified:
perlfaq/trunk/perlfaq8.pod

Log:
* What's the difference between require and use?
+ that should have been an absolute file path



Modified: perlfaq/trunk/perlfaq8.pod
==============================================================================
--- perlfaq/trunk/perlfaq8.pod (original)
+++ perlfaq/trunk/perlfaq8.pod Tue Jan 29 16:38:10 2008
@@ -1208,7 +1208,7 @@
for C<MODULE> must be a bareword. That is, C<use> cannot load files
by name, although C<require> can:

- require "lib/Foo.pm"; # no @INC searching!
+ require "$ENV{HOME}/lib/Foo.pm"; # no @INC searching!

See the entry for C<use> in L<perlfunc> for more details.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcvs-perlfaq @
categoriesperl
postedJan 30, '08 at 12:38a
activeJan 30, '08 at 12:38a
posts1
users1
websitelearn.perl.org...

1 user in discussion

Comdog: 1 post

People

Translate

site design / logo © 2019 Grokbase