Help for this page

Select Code to Download


  1. or download this
    push my @result, wantarray ? &inner_func() : scalar &inner_func();
    
  2. or download this
    sub outer_func {
      my @result;
    ...
      # do some other stuff
      return (wantarray ? (@result) : $result[0]);
    }