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

Thanks Marshall. This helps. Never a great user of glob() function , will try it out.
  • Comment on Re^2: Sum of N elements in an M element array

Replies are listed 'Best First'.
Re^3: Sum of N elements in an M element array
by Marshall (Canon) on Feb 02, 2020 at 08:24 UTC
    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