Skip to content

Commit

Permalink
PPI::Dumper fails with strict hashpairs (cperl 5.27)
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed May 27, 2017
1 parent 5a2332f commit b676e3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/PPI/Dumper.pm
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ sub new {
}, $class;

# Handle the options
my %options = map { lc $_ } @_;
my @options = map { lc $_ } @_; # strict hashpairs
my %options = @options;
foreach ( keys %{$self->{display}} ) {
if ( exists $options{$_} ) {
if ( $_ eq 'indent' ) {
Expand Down

0 comments on commit b676e3f

Please sign in to comment.