For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > September 2004 > file upload with Perl









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author file upload with Perl
Maxipoint Rep Office

2004-09-22, 8:57 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



2) What is my path instead: '/home/redanti/perl'



3) what is modul lib?

Is it above lib modul:
http://search.cpan.org/~nwclark/per...5/lib/lib_pm.PL







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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com