[Catalyst] http://www.catalystframework.org/calendar/2008/8

Bill Moseley moseley at hank.org
Fri Dec 12 16:37:25 GMT 2008


 sub ACCEPT_CONTEXT {
     my ($self, $c ) = @_;
     $self = bless({ %$self,
                     path_to => $c->path_to(''),
                 }, ref($self));
     return $self;
 }

Sorry, I'm a bit curious about that code.  Why is that done that way
instead of simply:


 sub ACCEPT_CONTEXT {
     my ($self, $c ) = @_;
     $self->path_to( $c->path_to('') );
     return $self;
 }

Which would also avoid calling DESTROY every request.




-- 
Bill Moseley
moseley at hank.org
Sent from my iMutt




More information about the Catalyst mailing list