[PATCH perlfaq2,8] @INC notes

[email protected] (Iain Truskett)
Newsgroups perl.perlfaq.workers
Message-ID <[email protected]>
Heyo,


(a) Change the code example in perlfaq2 to list @INC to a
    shorter and less noisy variant (if it's easier for
    people to type, it's better in my book).

(b) Add '@INC' to the title of perlfaq8 / "How do I add a
    directory to my include path at runtime?" so that
    'perldoc -q @INC' will find it.


cheers,
-- 
Iain.
inc.patch (text/plain, 1.2 KB)
Index: perlfaq2.pod
===================================================================
RCS file: /cvs/public/perlfaq/perlfaq2.pod,v
retrieving revision 1.23
diff -u -r1.23 perlfaq2.pod
--- perlfaq2.pod	8 Aug 2003 00:12:29 -0000	1.23
+++ perlfaq2.pod	13 Sep 2003 14:56:28 -0000
@@ -69,7 +69,7 @@
 One simple way to check that things are in the right place is to print out
 the hard-coded @INC that perl looks through for libraries:
 
-    % perl -e 'print join("\n",@INC)'
+    % perl -le 'print for @INC'
 
 If this command lists any paths that don't exist on your system, then you
 may need to move the appropriate libraries to these locations, or create
Index: perlfaq8.pod
===================================================================
RCS file: /cvs/public/perlfaq/perlfaq8.pod,v
retrieving revision 1.18
diff -u -r1.18 perlfaq8.pod
--- perlfaq8.pod	12 Aug 2003 02:45:33 -0000	1.18
+++ perlfaq8.pod	13 Sep 2003 14:56:28 -0000
@@ -1163,7 +1163,7 @@
     use lib "$FindBin::Bin";
     use your_own_modules;
 
-=head2 How do I add a directory to my include path at runtime?
+=head2 How do I add a directory to my include path (@INC) at runtime?
 
 Here are the suggested ways of modifying your include path:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.