Brackets are needed to make the mapping function return a 2-element list for each element of @numbers, which is what I think ikegami intended:
print join ' ', map { (0, $_) } @numbers;--
"Any sufficiently analyzed magic is indistinguishable from science" - Agatha Heterodyne
In reply to Re^3: array join missing zero and space
by mykl
in thread array join missing zero and space
by redmustang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |