Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: apache2 passing PERL5LIB environment to cgi

by AndyZaft (Hermit)
on Jun 14, 2010 at 20:11 UTC ( #844723=note: print w/replies, xml ) Need Help??


in reply to Re^2: apache2 passing PERL5LIB environment to cgi
in thread apache2 passing PERL5LIB environment to cgi

Hmm, never used perl with apache without mod_perl before. Does it start a new perl instance on every cgi call? So at least you get response from the script right? I mean as HTML in a browser. When you print @INC after your use lib line, do you see your $HOME/lib/perl5 in there? Was just wondering if ENV{$HOME} actually would have the right path or would show up something like /home/nobody/lib/perl5 or /lib/perl5?
  • Comment on Re^3: apache2 passing PERL5LIB environment to cgi

Replies are listed 'Best First'.
Re^4: apache2 passing PERL5LIB environment to cgi
by Anonymous Monk on Jun 15, 2010 at 07:42 UTC
    Does it start a new perl instance on every cgi call?

    The definition of CGI is start a new instance on every call, read input (form data or whatever) from STDIN, read headers from %ENV, write output on STDOUT.

      Erm... I guess I should've clarified, afaik when you are using mod_perl that gives you a built in interpreter in the apache server as a module so your apache instance doesn't have to call the external perl executable every time it encounters a call to a CGI written in perl.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://844723]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2018-06-22 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (120 votes). Check out past polls.

    Notices?