in reply to Re^2: Array question
in thread Array question

Perhaps I was less than careful with my use of the word "add". I simply meant you can do this:
my @arr; $arr[78] = "foo";

But it is actually pretty straightforward to insert elements into an array, shifting all later elements, using splice:

my @a = ('foo','baz'); splice(@a,1,0,'bar'); print "@a\n";