1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 18:45:42 -04:00

localize some perlvars to prevent people from doing weird shit

This commit is contained in:
Ryan Voots 2017-04-04 11:31:15 -04:00
parent e85e082848
commit 72eb3c71ee

View file

@ -404,9 +404,14 @@ 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;
do {
local $/;
local $\;
local $,;
$code = "use $]; use feature qw/postderef refaliasing lexical_subs postderef_qq signatures/; use experimental 'declared_refs';\n#line 1 \"(IRC)\"\n$code";
$ret = eval $code;
}
}
select STDOUT;
local $Data::Dumper::Terse = 1;