Help! I'm getting these messages:

# Can't locate MacPerl.pm in @INC (@INC contains: : Dev:Pseudo:).
File 'Macintosh HD:SRC:printimeb'; Line 5
# BEGIN failed--compilation aborted.
File 'Macintosh HD:SRC:printimeb'; Line 5

(This version happens to be an alias pointing to the real script. It makes no difference which is present; the alias or the actual script.)

From this very simple script:

#!perl -w
#
# Write date and time to bootlog file.
#
use MacPerl;
open(FO,">>Macintosh HD:.a:Boot-Log")
   or die "Can't open output $!";
my $t = localtime(time);
print FO "$t\n";
MacPerl::Quit(2);

It is stored as a runtime (the icon is a pyramid).

The intent is also very simple; merely write a record to a file called "Boot-Log" every time the system is booted. I can drop the "use MacPerl" and change the quit to exit, but the interpretor/compiler stays running. I'd like it to just start itself, run the script from the "Startup" folder, then quit.

I apologize in advance if this has been covered, but I can't recall for certain if it has.

Thanks!

Bill

Reply via email to