The perl debugger uses various environment variables to configure
itself, or pick which debugger to use. Clean up those environment
variables before activating the debugger so that it behaves predictably.
Fixes RT#127516
BEGIN {
# shut up the debugger
- $ENV{PERLDB_OPTS} = 'NonStop';
+ delete $ENV{$_} for grep /^PERL5?DB/, keys %ENV;
+ delete $ENV{LOGDIR};
+ $ENV{HOME} = '.';
+ $ENV{PERLDB_OPTS} = 'NonStop noTTY';
}
BEGIN {
#line 1
#!/usr/bin/perl -d
-#line 27
+#line 30
}