in reply to How can increase number sequence in a variable

It's theoretically possible, but "it's stupid to use a variable as a variable name".

Usually, a hash is what you want, since the keys are strings that you could compose out of other variables. In this case though, it sounds like what you want is an array of arrays. (Update: See also perllol)

use warnings; use strict; use Data::Dump; my @A; for my $i (0..5) { $A[$i][0] = 1234; } dd @A; __END__ ([1234], [1234], [1234], [1234], [1234], [1234])