in reply to Using eval to build array structure

I am unsure how you would unshift a value off that type of data structure,

$val = unshift ( @{$a->[$i]} );

I am getting an error saying that the index, that I am trying to concatenate with my array base name, needs to be defined.

This is sloppy, there has to be a better way. But here is at least one solution...

use strict; for $i(1..4) { for $j($i+1..5){ no strict 'refs'; if ([eval{"\@a$i"}]->[0] == [eval{"\@a$j"}]->[0]){ print "Matched one!\n"; last}; }; };