On Wed, 15 Apr 2015 17:55:11 +0100
John Barrett <[email protected]> wrote:

> 
> get '/object' => sub {
>     AnObject->new;
> };
> 

Quick follow up on this,

Wrapping the instance in a hashref constructor performs as expected:

get '/object' => sub {
    { object => AnObject->new };
};

...which I guess is what I should have been doing in the first place.

Sorry for noise.
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to