Help for this page

Select Code to Download


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