X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSub%2FQuote.pm;h=8016b06f15886455912df4305a61337ebe7859ef;hb=350f2de6ebd85fd6fc5699c0773e6737756bac36;hp=d56cacd9059f435e9e00f044da3fc849da4f0edb;hpb=e18659958c8a6bf3fc60b9531e40acbea275076f;p=gitmo%2FMoo.git diff --git a/lib/Sub/Quote.pm b/lib/Sub/Quote.pm index d56cacd..8016b06 100644 --- a/lib/Sub/Quote.pm +++ b/lib/Sub/Quote.pm @@ -59,7 +59,7 @@ sub quote_sub { (ref($_[-1]) eq 'HASH' and ref($_[-2]) eq 'HASH') ? pop : {}; - my $captures = pop if ref($_[-1]) eq 'HASH'; + my $captures = ref($_[-1]) eq 'HASH' ? pop : undef; undef($captures) if $captures && !keys %$captures; my $code = pop; my $name = $_[0]; @@ -121,6 +121,7 @@ sub CLONE { } 1; +__END__ =head1 NAME @@ -290,3 +291,5 @@ See L for authors. =head1 COPYRIGHT AND LICENSE See L for the copyright and license. + +=cut