Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Comma's and blocks

by bsb (Priest)
on Oct 05, 2007 at 02:44 UTC ( #642816=note: print w/replies, xml ) Need Help??

in reply to Comma's and blocks

The & prototype and a comma causes problems with Data::Rmap:
rmap { print }, 1..3; ^-------- bad news, you get and empty list: rmap(sub { print $_; }), 1..3;