RE: PATH problem

2005-04-25 Thread TapasranjanMohapatra
-Original Message- From: Lawrence Statton [mailto:[EMAIL PROTECTED] Sent: Mon 4/25/2005 8:19 PM To: TapasranjanMohapatra Cc: beginners-cgi@perl.org Subject: Re: PATH problem > > All, > My script goes like this... > -- > #!/usr/b

Re: PATH problem

2005-04-25 Thread Lawrence Statton
-- > I have a case where file_one is not in the same directory. So I give the abso > lute path of file_one > in place of file_one. > When run it using perl on command line I get the contents of file printed cor > rectly. > > But when accessed through browser (cgi-bin

Re: PATH problem

2005-04-25 Thread Wiggins d'Anconia
> in place of file_one. > When run it using perl on command line I get the contents of file printed > correctly. > > But when accessed through browser (cgi-bin), I get nothing printed. > > I thought it might be path problem , but it is not. Because when the file is > in same di

Re: PATH problem

2005-04-25 Thread Sean Davis
, you have to be sure that the directory that you want to read from can be read by the user under which the browser runs. So, it isn't a PATH problem, but a permissions problem. Sean On Apr 25, 2005, at 7:17 AM, TapasranjanMohapatra wrote: All, My script goes like

PATH problem

2005-04-25 Thread TapasranjanMohapatra
the same directory. So I give the absolute path of file_one in place of file_one. When run it using perl on command line I get the contents of file printed correctly. But when accessed through browser (cgi-bin), I get nothing printed. I thought it might be path problem , but it is not. Bec

Re: path problem

2005-04-09 Thread Peter Scott
On Fri, 08 Apr 2005 11:59:12 -0400, Shaun Fryer wrote: >> >use lib "$ENV{'DOCUMENT_ROOT'}/pdftest"; > > use lib is done at compile time. the %ENV isn't available til run-time IIRC. False: $ perl -le 'print grep /peter/ => @INC' $ perl -le 'use lib $ENV{HOME}; print grep /peter/ => @INC' /home/p

Re: path problem

2005-04-08 Thread Shaun Fryer
> >use lib "$ENV{'DOCUMENT_ROOT'}/pdftest"; use lib is done at compile time. the %ENV isn't available til run-time IIRC. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

path problem

2005-04-06 Thread Andrew Kennard
Hi all Iv'e downloaded a pdf module from CPAN and am trying to use it in my webspace provided by Demon Internet (www.demon.net) but no matter what I try it cannot 'find' the module called Reuse.pm which IS in the same directory as the following script. !/usr/bin/perl use lib "$ENV{'DOCUMENT_ROOT'