http://www.perlmonks.org?node_id=1151296


in reply to Re^2: ... for (@_) x= 2;
in thread ... for (@_) x= 2;

Just in case this is not obvious, map tends to produce a more consistent solution in these situations:

perl -le'print map $_ x=2, ("a" .. "f")'

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)