From: Matt S Trout Date: Fri, 25 May 2012 15:13:12 +0000 (+0000) Subject: bloddy empty hashrefs X-Git-Tag: v1.001003~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FRole-Tiny.git;a=commitdiff_plain;h=123a5a6e906ff637e8527949e292efb60ea68724 bloddy empty hashrefs --- diff --git a/lib/Role/Tiny.pm b/lib/Role/Tiny.pm index 6e3a70a..04a44d1 100644 --- a/lib/Role/Tiny.pm +++ b/lib/Role/Tiny.pm @@ -252,7 +252,7 @@ sub _concrete_methods_of { my $stash = do { no strict 'refs'; \%{"${role}::"}}; # reverse so our keys become the values (captured coderefs) in case # they got copied or re-used since - my $not_methods = { reverse %{$info->{not_methods}} }; + my $not_methods = { reverse %{$info->{not_methods}||{}} }; $info->{methods} ||= +{ # grab all code entries that aren't in the not_methods list map {