| Wiggins d Anconia 2004-09-22, 8:58 pm |
| >
>
> I have few questions regarding file uplad:
>
> 1) I am try do next tutorial: http://www.redantigua.com/upload.html
>
> but what is "use lib qw(/home/redanti/perl);" here:
> http://www.redantigua.com/UploadApp.txt
>
>
perldoc lib
C<lib> is a pragma (similar to a module, but affects the perl
interpreter during compile time). It allows you to munge the @INC
special var to include non-default paths for Perl modules. So in the
example the tutor is including a new path that has his Perl modules
installed in it.
>
> 2) What is my path instead: '/home/redanti/perl'
>
>
No idea, only you can tell us that. If you have modules installed in a
place that is not in the main Perl library locations then you should
know where you installed them to, if you don't then you shouldn't need
the line at all.
>
> 3) what is modul lib?
>
> Is it above lib modul:
> http://search.cpan.org/~nwclark/per...5/lib/lib_pm.PL
>
>
Yes those are the docs for it, though it is a 'pragma' instead of a
'module', which I only really mention because this is a beginners list
where we want people to be specific, and learn specifically, the
vocabulary used.
HTH,
http://danconia.org
|