Paramaterized require statements

I have code that looks like:

require "/etc/pmg_global.pl";

require "$master_include_file_dir/system_status.pl";

The "pmg_global.pl" file has a simple set defines that tell us where to find the 'base' of the system. This lets us move code from machine to machine.

My problem is that Optiperl won't read this kind of require. I can set $master_include_file_dir to anything I like, but nothing happens. If I change the require statement to remove all the parameters:

require "/pmg/bin/system_status.pl";

Everything works. Is there any partial evaluation that I can convince Optiperl to do to resolve these files?

Thanks,

Answer:
In the options dialog / perl / @INC path or from project options, add a search path to include the folder that contains the file system_status.pl.

11.12.2003. 02:12

This article hasn't been commented yet.

Write a comment

:

:

:


4 + 2 =