Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: use lib in cgi env

by remiah (Hermit)
on Nov 05, 2012 at 22:38 UTC ( [id://1002395]=note: print w/replies, xml ) Need Help??


in reply to use lib in cgi env

Hello.

FindBin works good to me. And it seems suit for your need well...

It unshift paths to @INC properly for me, and I wonder what is the result of @INC in your case. This will show the result of @INC after use libed.

#!/usr/bin/perl use FindBin qw($Bin); use lib ($Bin,"$Bin/../../mycpan"); print "Content-type: text/html; charset=UTF-8\n\n"; print "$_<br>\n" for @INC;
Here unshift @INC, current directory and relative mycpan directory.

FindBin do good to me.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1002395]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-29 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found