Hi,

I have a problem when porting an application from Apache 1.23.x + mod_perl
1.0 to Apache 2.xx + mod_perl 2.0.

One of the scripts receives as argument a filename (with no path info), and
the scripts is suppose to open the file from the same directory in which
the script is located and perform some stuff on it.  The code looks
something like:

$cgih = new CGI;

$filename = $cgih->param('filename');

open(FILE, $filename) || die "can't open file";

# do some stuff


This code used to work on previous platform, i.e. the file called
"filename" would be opened from the same directory as the script itself.
Now, the system cannot anymore.  If I hardcode the filename with full path,
it works (this was to check whether I had some file permission problems).

Thanks,

Luc

Reply via email to