in reply to Best practices for warnings about wrong context

Note that the warnings is easily silenced in situations such as the Catalyst example you gave by following up the call with an explicit return;.
sub xxx : Local Args(0) { my ($self, $c) = @_; ... myfunc(); return; }

Replies are listed 'Best First'.
Re^2: Best practices for warnings about wrong context
by vsespb (Chaplain) on Oct 06, 2015 at 08:25 UTC
    yes,sure