in reply to Dancer2 hook

Huh? Does this not work?
hook after_error => sub { my $response = shift; };

https://metacpan.org/pod/Dancer2::Core::Hook

Replies are listed 'Best First'.
Re^2: Dancer2 hook
by Anonymous Monk on Aug 13, 2019 at 00:15 UTC
    It doesn't work when I put it in a module that gets used. Do you understand? The hook works, yes. But it's the implementation that I am having trouble with.