@array = map {"log$_"} map {my $s = $_; map {"$_$s"} qw [a b]} 1 .. 7; [download]
In reply to Re: Declare values in array using Regex by JavaFan in thread Declare values in array using Regex by perl177