From b676e3fb7df2c150d7855d95b894e4ad5f2d21b6 Mon Sep 17 00:00:00 2001 From: Reini Urban Date: Sat, 27 May 2017 11:56:04 +0200 Subject: [PATCH] PPI::Dumper fails with strict hashpairs (cperl 5.27) Fixes #201 --- lib/PPI/Dumper.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/PPI/Dumper.pm b/lib/PPI/Dumper.pm index 8ffb18cc..1a4be40b 100644 --- a/lib/PPI/Dumper.pm +++ b/lib/PPI/Dumper.pm @@ -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' ) {