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

2008-12-12 Thread Bill Moseley
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 {

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

2008-12-12 Thread Bill Moseley
On Fri, Dec 12, 2008 at 08:37:25AM -0800, Bill Moseley wrote: 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