DB<100> sub f { return $_ + 1 }; DB<101> map f, 1..3 => (2, 3, 4) DB<102> map &f, 1..3 => (2, 3, 4)
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re: map sub to list?
by LanX
in thread map sub to list?
by pldanutz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |