in reply to avoiding the hash
$array[0] . "|" . $array2[0] [download]
Or you can put them into an array:
my $newarray[0] = [$array[0], $array2[0]]; [download]
Update: Got rid of the escape function: they are just numbers. Got rid of the temporary variable.