From: Matt S Trout Date: Mon, 30 Jul 2012 12:34:56 +0000 (+0000) Subject: fix package name for curry::weak AUTOLOAD X-Git-Tag: v1.000000~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ee6aa76393e612f4a893bc3a0f5fa8f7dafb68a4;p=p5sagit%2Fcurry.git fix package name for curry::weak AUTOLOAD --- diff --git a/lib/curry.pm b/lib/curry.pm index 544013e..f39fb02 100644 --- a/lib/curry.pm +++ b/lib/curry.pm @@ -19,7 +19,7 @@ use Scalar::Util (); sub AUTOLOAD { my $invocant = shift; Scalar::Util::weaken($invocant) if Scalar::Util::blessed($invocant); - my ($method) = our $AUTOLOAD =~ /^curry::(.+)$/; + my ($method) = our $AUTOLOAD =~ /^curry::weak::(.+)$/; my @args = @_; return sub { return unless $invocant;