There's more than one way to do things | |
PerlMonks |
Re^3: Best practices for warnings about wrong contextby Your Mother (Archbishop) |
on Oct 05, 2015 at 16:50 UTC ( [id://1143836]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|