Perl 5.26 no longer adds . to @INC

test.pl calls stuff/server.pl and needs to pass a qualified
script (./wiki.pl instead of wiki.pl).
This commit is contained in:
Alex Schroeder
2017-11-07 15:06:05 +01:00
parent bec071797e
commit 10266ee3fe

View File

@@ -384,7 +384,7 @@ sub start_server {
} elsif ($pid == 0) {
use Config;
my $secure_perl_path = $Config{perlpath};
exec($secure_perl_path, "stuff/server.pl", "wiki.pl", $port) or die "Cannot exec: $!";
exec($secure_perl_path, "stuff/server.pl", "./wiki.pl", $port) or die "Cannot exec: $!";
}
}