Help for this page

Select Code to Download


  1. or download this
    # And for something completely different...
    sub foo {
    ...
      # body of foo here.
      return $whatever;
    }
    
  2. or download this
    sub foo {
        map {
    ...
            $whatever
        } @_
    }
    
  3. or download this
    sub foo {
        (map {
    ...
            $whatever
         } @_)[0..$#_];
    }
    
  4. or download this
    sub foo {
       my @ret = map {
    ...
       } @_;
       @ret[0..$#ret];
    }