Re: how to require() a file?

2009-03-04 Thread Stanisław T. Findeisen
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

RE: how to require() a file?

2009-03-01 Thread Dermot Paikkos
> -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

Re: how to require() a file?

2009-02-27 Thread Gunnar Hjalmarsson
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

Re: how to require() a file?

2009-02-27 Thread Stanisław T. Findeisen
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 ==