Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Perlito5 - preload warnings.pm (this is required by t/op/negate.t)
  • Loading branch information
fglock committed Aug 30, 2012
1 parent 2ffd277 commit 3585bd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion perlito5.pl
Expand Up @@ -10209,7 +10209,7 @@ package Perlito5::Runtime;
if ($execute) {
($Perlito5::EXPAND_USE = 1);
local(${'@'});
(do { my $m = Perlito5::Grammar->exp_stmts( ('package main; no strict; ' . $source . '; $@ = undef'), 0);my $source; $source .= (defined $_ ? $_->emit_perl5(0, "scalar") : "") . ";\n" for @{ Perlito5::Match::flat($m) }; eval $source;});
(do { my $m = Perlito5::Grammar->exp_stmts( ('package main; no strict; no warnings; ' . $source . '; $@ = undef'), 0);my $source; $source .= (defined $_ ? $_->emit_perl5(0, "scalar") : "") . ";\n" for @{ Perlito5::Match::flat($m) }; eval $source;});
if (${'@'}) {
((my $error) = ${'@'});
warn($error);
Expand Down
2 changes: 1 addition & 1 deletion src5/util/perlito5.pl
Expand Up @@ -147,7 +147,7 @@ package Perlito;
if ( $execute ) {
$Perlito5::EXPAND_USE = 1;
local $@;
eval "package main; no strict; $source; \$@ = undef";
eval "package main; no strict; no warnings; $source; \$@ = undef";
if ( $@ ) {
my $error = $@;
warn $error;
Expand Down

0 comments on commit 3585bd8

Please sign in to comment.