[Pdx-pm] require './file' vs. require 'file'

Austin Schutz tex at off.org
Fri Jun 16 13:02:11 PDT 2006


	I have a perplexing problem regarding a tool I've inhereted.

	In the code there is:

require './my_lib.pl';

	where ./my_lib.pl is a symlink to ../my/my_lib.pl.
	The full path to the actual file is:

/usr/local/apache/cgi-bin/my/my_lib.pl

	So, because I think the symlink system is stinky I would like to
do:

use lib '/usr/local/apache/cgi-bin/my';

and

require 'my_lib.pl';


	but that causes the code to fail without error. Because the code
is full of eval()s it's not obvious how one would figure out where exactly
it's failing.

	Any idea why or how this could happen?

	Thanks,

	Austin


More information about the Pdx-pm-list mailing list