HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/mod_perl-2.0.12/ModPerl-Registry/t/cgi-bin/prefork.pl
#!perl -w
# please insert nothing before this line: -*- mode: cperl; cperl-indent-level: 4; cperl-continued-statement-offset: 4; indent-tabs-mode: nil -*-

# test that prefork runs from the directory the script lives in

# All Modperl::*Prefork modules must chdir into the current dir, so we
# should be able to read ourselves via a relative path

print "Content-type: text/plain\n\n";

my $script = "prefork.pl";
if (open my $fh, $script) {
    print "ok $script";
}
else {
    print "prefork didn't chdir into the scripts directory?";
    print " The error was: $!";
}