- or download this
sub myfunc
{
...
# modify $ref somehow
warn "Should be called in void context" if defined wantarray;
}
- or download this
func1();
myfunc($data);
func2();
- or download this
func1(myfunc($data));
- or download this
sub anotherfunc {
# .. code here
...
func1(anotherfunc())
- or download this
sub xxx : Local Args(0) {
my ($self, $c, $s, $r, $p) = @_;
$c->res->body( wantarray );
}