Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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 perusing the Monastery: (4)
As of 2016-02-14 02:58 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (455 votes), past polls