mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-07 18:25:42 -04:00
Clean up output of deparse and eval
This commit is contained in:
parent
7a507ee2c0
commit
e470e471cd
1 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,8 @@ no warnings;
|
|||
$ret =~ s/ no warnings;//;
|
||||
$ret =~ s/\s+/ /g;
|
||||
$ret =~ s/\s*\}\s*$//;
|
||||
$ret =~ s/\s*\$\^H\{[^}]+\}(\s+=\s+[^;]+;?)?\s*//g;
|
||||
$ret =~ s/\s*BEGIN\s*\{\s*[^}]*\s*\}\s*/ /;
|
||||
|
||||
print STDOUT $ret;
|
||||
}
|
||||
|
@ -155,6 +157,8 @@ use Storable qw/nfreeze/; nfreeze([]); #Preload Nfreeze since it's loaded on dem
|
|||
|
||||
my $code = do { local $/; <STDIN> };
|
||||
|
||||
# Kill @INC to shorten errors;
|
||||
@INC = ();
|
||||
|
||||
# Close every other filehandle we may have open
|
||||
# this is probably legacy code at this point since it was used
|
||||
|
|
Loading…
Add table
Reference in a new issue