Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: use lib in cgi env

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

in reply to use lib in cgi env


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.

Comment on Re: use lib in cgi env
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2015-02-28 00:31 GMT
Find Nodes?
    Voting Booth?

    On my keyboard, Caps lock is:

    Results (457 votes), past polls