Help for this page
foreach (@array1) { ($id,$name,$ref) = split( /,/, $_); }
foreach (@array2) { ($id,$name,$ref) = split( /,/, $_); }