in reply to $1 into an array
Not running with warnings or strict are ya!
You are assigning your $1 into the HASH slotarray, but then trying to print out the contents of the ARRAY slotarray.
# change this line, which assigns into a hash... my $slotarray{$counter} = "$1"; # to something like this, which assigns into an array. push( @slotarray, $1 );
|
|---|