in reply to Re^2: Sum of N elements in an M element array
in thread Sum of N elements in an M element array

This glob thing is a bit weird.
Good Luck!
Consider also:
#!/usr/bin/perl use strict; use warnings; my @combos = glob "{a,b,c}{1,2}"; print "@combos\n"; __END__ Prints: a1 a2 b1 b2 c1 c2