in reply to array to string conversion.
my $arr1 = \@list1; my $arr2 = \@list2; [download]
or, if you don't want to work directly with the lists, copy them:
my $arr1 = [ @list1 ]; my $arr2 = [ @list2 ]; [download]