Skip to content

Commit

Permalink
Perlito5 - parser - "use 5.011" or larger loads strict.pm
Browse files Browse the repository at this point in the history
  • Loading branch information
fglock committed May 24, 2019
1 parent d6bb8c8 commit 92d9128
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src5/lib/Perlito5/Grammar/Use.pm
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@ token stmt_use {
}
);

if ($version ge '5.011') {
# use strict
parse_time_eval(
{
mod => "strict",
code => "use",
arguments => undef,
}
);
}

my $code = feature->can('unimport');
if (defined($code)) {
# no feature ':all';
Expand Down

0 comments on commit 92d9128

Please sign in to comment.