Paramaterized require statements

I have code that looks like:

require "/etc/";

require "$master_include_file_dir/";

The "" 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/";

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


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

11.12.2003. 02:12

This article hasn't been commented yet.

Write a comment




4 + 2 =