Gunnar Hjalmarsson wrote:
Stanisław T. Findeisen wrote:
I am trying to require() a file using its absolute name. In command
line mode everything works fine, but not in Apache:
[Fri Feb 27 17:45:07 2009] [error] Can't locate
/home/stf/public_html/test/arcv/public_html/../common.pl in @INC (@IN
> -Original Message-
> From: "Stanisław T. Findeisen" [mailto:sf181...@students.mimuw.edu.pl]
> Sent: 27 February 2009 17:03
> To: beginners-cgi@perl.org
> Subject: how to require() a file?
>
> I am trying to require() a file using its absolute name. In command
> line mode everything works
Stanisław T. Findeisen wrote:
I am trying to require() a file using its absolute name. In command line
mode everything works fine, but not in Apache:
[Fri Feb 27 17:45:07 2009] [error] Can't locate
/home/stf/public_html/test/arcv/public_html/../common.pl in @INC (@INC
contains: /usr/lib/perl5
Dermot Paikkos wrote:
If you are using mod_perl then you can use the PerlSwitches directive
for -I/path/to/common.pl. Alteratively you use `use lib` in your
ticket-list.pl
Alternatively, I can do
chmod g+r,o+r common.pl
:-)
STF
==