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:
parent
e85e082848
commit
72eb3c71ee
1 changed files with 9 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue