@array = qw (1 1 0 2 0 1 3 0 0 4 1 1)
I would like to group the elements in 3s and print them to a file on one line, comma seperated i.e.
1,1,0
2,0,1
3,0,0
4,1,1
Any help appreciated.
Thanks
Joe
In reply to Group array in threes by joec_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |