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