in reply to Re: variable array names
in thread variable array names

If $element_count is an integer, then there's no reason to use a hash instead of an array. So what you really want is an array of arrays, thus.
$element_count = 0; foreach $element (@CLIQUE_ID_START_LINES) { if ($element != $CLIQUE_ID_START_LINES[-1]) { for my $i ($element..$CLIQUE_ID_START_LINES[$element_count+1]) { push(@{$CLIQUE_DETAILS->[$element_count]}, $VCONFIG[$i]); } $element_count++ }

Replies are listed 'Best First'.
Re^3: variable array names
by Makarczyk (Initiate) on Oct 18, 2004 at 15:50 UTC
    identifying the array name as a hash worked perfectly. Thank you both for your extremely helpful replies. Best regards- Matt