in reply to Re^2: Best practices for warnings about wrong context
in thread Best practices for warnings about wrong context
It does not. The body expects a string/scalar. $c->response->body(defined wantarray); prints "1". Maybe I am missing the point because a setter like ->body expects a value and is therefore never going to be a void context call; it's a strange question / concept to want to demonstrate.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Best practices for warnings about wrong context
by vsespb (Chaplain) on Oct 05, 2015 at 16:55 UTC | |
by Your Mother (Archbishop) on Oct 05, 2015 at 17:23 UTC | |
by vsespb (Chaplain) on Oct 05, 2015 at 17:33 UTC | |
by Your Mother (Archbishop) on Oct 05, 2015 at 19:13 UTC |