From: Doug Bell Date: Wed, 26 Aug 2015 09:27:20 +0000 (-0400) Subject: fix level as hashref argument X-Git-Tag: v1.002005~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bd74adea007ab33d9b1321d911dd76371317c128;p=p5sagit%2FImport-Into.git fix level as hashref argument --- diff --git a/lib/Import/Into.pm b/lib/Import/Into.pm index 1e4fb75..cc9ef0b 100644 --- a/lib/Import/Into.pm +++ b/lib/Import/Into.pm @@ -9,7 +9,7 @@ our $VERSION = '1.002004'; sub _prelude { my $target = shift; my ($package, $file, $line, $level) - = ref $target ? @{$target}{qw(package filename line)} + = ref $target ? @{$target}{qw(package filename line level)} : $target =~ /[^0-9]/ ? ($target) : (undef, undef, undef, $target); if (defined $level) {