It has been many many moons since I've touched RuntimeBuilder, but I seem to recall having to explictly load the File::Spec::Mac module in the script to be compiled. Since RuntimeBuilder needs to create a runtime with every module being used, and File::Spec doesn't know what module to use until it's been called, by the time you run your runtime, it's "too late" to load the (now missing from the runtime application) File::Spec::Mac module
whoops! how come I didn't think of it before?
This is the new code:
[code] #!/perl
use strict; use warnings; use File::Spec; use File::Spec::Mac;
print File::Spec->rootdir() || "what the hell!?\n"; [/code]
and this is the "RuntimeBuilder.dp" feedback:
Checking for imported modules...
Saving "rootdir.pl" as Runtime in
"Macintosh HD:Utenti:Claudio:Desktop Folder:rootdir ƒ:rootdir.run"...
Saving imported modules in resource fork of rootdir.run...
Copied module Carp.pm into resource fork.
Copied module Exporter.pm into resource fork.
Copied module Mac:Files.pm into resource fork.
Copied module strict.pm into resource fork.
Copied module base.pm into resource fork.
Copied module vars.pm into resource fork.
Copied module Config.pm into resource fork.
Copied module warnings:register.pm into resource fork.
Copied module warnings.pm into resource fork.
Copied module File:Spec:Mac.pm into resource fork.
Copied module DynaLoader.pm into resource fork.
Copied module File:Spec:Unix.pm into resource fork.
Copied module File:Spec.pm into resource fork.
Copied module Macintosh HD:Applications (Mac OS 9):MacPerl ƒ:lib:auto:DynaLoader:dl_findfile.al into resource fork.
Copied module AutoLoader.pm into resource fork.
Copied module Cwd.pm into resource fork.
Finished.
Unfortunately I still get the "What the hell!?" value on the screen...
how boring...
Gaetano