You may be able to re-associate Perl files in your web server or in NT to a slightly modified Perl command line: "perl.exe -MLogScripts". Then use a module like this to log the start and stop of the script:
package LogScripts;
# If you want high-res timekeeping:
# use Time::HiRes qw{ time };
my $started;
BEGIN {
open(F, ">>/logdir/scripts.log");
print F localtime(time) . " $ENV{REMOTE_ADDR} - Starting $0\n";
$started = time();
}
END {
my $elapsed = time() - $started;
print F localtime(time) . " $ENV{REMOTE_ADDR} - Stopping $0 ($elaps
+ed seconds)\n";
close(F);
}