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

[MacPerl] problem with runtime version and @INC



I'm having trouble running scripts that I save as "Runtime versions"
so I created this script to print out my environment variables:

#!perl
use Mac::Windows;
print "Variables stored in \"\@INC\" \n";
my($i) = 0 ;
while ($i < ($#INC+1)) {
    print ($INC[$i], "\n");
    $i++;
}
print "\n";
print %INC;

The output of this is ----------------------
Variables stored in "@INC"

Disk:Utilities:perl:MacPerl ƒ:lib:MacPPC
Disk:Utilities:perl:MacPerl ƒ:lib:
:
Dev:Pseudo:

Mac/Events.pmDisk:Utilities:perl:MacPerl
ƒ:lib:Mac:Events.pmSymbol.pmDisk:Utilities:perl:MacPerl
ƒ:lib:Symbol.pmConfig.pmDisk:Utilities:perl:MacPerl
ƒ:lib:Config.pmFcntl.pmDisk:Utilities:perl:MacPerl
ƒ:lib:Fcntl.pmMac/Memory.pmDisk:Utilities:perl:MacPerl
ƒ:lib:Mac:Memory.pmExporter.pmDisk:Utilities:perl:MacPerl
ƒ:lib:Exporter.pmstrict.pmDisk:Utilities:perl:MacPerl
ƒ:lib:strict.pmvars.pmDisk:Utilities:perl:MacPerl
ƒ:lib:vars.pmSelectSaver.pmDisk:Utilities:perl:MacPerl
ƒ:lib:SelectSaver.pmDynaLoader.pmDisk:Utilities:perl:MacPerl
ƒ:lib:DynaLoader.pmMac/Hooks.pmDisk:Utilities:perl:MacPerl
ƒ:lib:Mac:Hooks.pmCarp.pmDisk:Utilities:perl:MacPerl
ƒ:lib:Carp.pmMac/Windows.pmDisk:Utilities:perl:MacPerl
ƒ:lib:Mac:Windows.pmMac/QuickDraw.pmDisk:Utilities:perl:MacPerl
ƒ:lib:Mac:QuickDraw.pmAutoLoader.pmDisk:Utilities:perl:MacPerl
ƒ:lib:AutoLoader.pmIO/Handle.pmDisk:Utilities:perl:MacPerl
ƒ:lib:IO:Handle.pm

the problem is I get the following when I save it as runtime and run
it-------------
# Can't locate Mac/Windows.pm in @INC.
File 'Disk:Desktop Folder:myPerl:display_INC_variables_R'; Line 2
# BEGIN failed--compilation aborted.
File 'Disk:Desktop Folder:myPerl:display_INC_variables_R'; Line 2

I've been looking at this all day  8-(  and pointers to what i'm missing
would be great.

Thanks
  Vincent


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org