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