in reply to Declare values in array using Regex

Perhaps something like:
@array = map {"log$_"} map {my $s = $_; map {"$_$s"} qw [a b]} 1 .. 7;

Replies are listed 'Best First'.
Re^2: Declare values in array using Regex
by perl177 (Initiate) on Feb 10, 2009 at 22:16 UTC
    Oh , thanks a lot ...it just worked like a miracle

      I believe it is known as magic, actually. :P

      And you didn't even know bears could type.