1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 19:26:05 -04:00

Reselect STDOUT upon exiting the eval

This commit is contained in:
Ryan Voots 2016-12-07 07:36:21 -05:00
parent b014d89cd4
commit 4c9b5516e8

View file

@ -342,9 +342,11 @@ Biqsip biqsip 'ugh chan ghitlh lursa' nuh bey' ngun petaq qeng soj tlhej waqboch
{
local $^O = $os[rand()*@os];
no strict; no warnings; package main;
# my $oldout;
$code = "use $]; use feature qw/postderef refaliasing lexical_subs postderef_qq signatures/; use experimental 'declared_refs';\n#line 1\n$code";
$ret = eval $code;
}
select STDOUT;
local $Data::Dumper::Terse = 1;
local $Data::Dumper::Quotekeys = 0;