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
[email protected]
Sent from my iMutt
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/