You could (mis)use glob():
my @array = glob "log{a,b}{1,2,3}"; print "@array\n"; # loga1 loga2 loga3 logb1 logb2 logb3
In reply to Re: Declare values in array using Regex
by almut
in thread Declare values in array using Regex
by perl177
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |