[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Re: How to get MacPerl to find a file





On Tue, 3 Feb 1998, Tom Fetherston wrote:

> runing the sdf file with arguments;
>  -2html 'T1:sdf2b12:samples:simple:mydoc.sdf'
> 
> starts things going but then I get an error:
> <AppleEvent> fatal: initialisation file 'sdf' not found
> # Attempt to free unreferenced scalar.
> 
> So many files are involved, I'm at a lose as to finding the line that
> resulted in generating this.

The line is in the _AppConfigInifile subroutine within the app.pl
library within the perllib/sdf (Unix syntax) directory. Basically,
SDF loads configuration settings from a file called sdf.ini which,
according to _AppConfigInifile, is searched for in the current
directory (".") and then in the directory holding the sdf script
($app_dir). $app_dir is derived from $0 when app.pl is loaded.
The filename "sdf.ini" is set within the sdf script by initialising
the 'inifile' element within the %app_config associative array.

If any of this is breaking things on the Mac, let me know what
I need to change and I'll gladly fix it.

Ian.


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch