From: Jonathan Rockway Date: Mon, 14 Jan 2008 00:12:29 +0000 (+0000) Subject: remove the "useless localization of subroutine entry" warning by removing the useless... X-Git-Tag: 5.7099_04~98 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=4c9db64f2e086bc0c7bc5e94fd7e3a0754b027cb remove the "useless localization of subroutine entry" warning by removing the useless localization of subroutine entry --- diff --git a/lib/Catalyst/Action.pm b/lib/Catalyst/Action.pm index 01c0564..9ff1dca 100644 --- a/lib/Catalyst/Action.pm +++ b/lib/Catalyst/Action.pm @@ -38,7 +38,7 @@ use overload ( sub dispatch { # Execute ourselves against a context my ( $self, $c ) = @_; - local $c->namespace = $self->namespace; + local $c->{namespace} = $self->namespace; return $c->execute( $self->class, $self ); }