I have an array that contains strings looking like this s1,s2,..
I need to split on "," and have the strings in another 2D array
that's my code
@arr2D;
$i=0;
foreach $a (@array){
$arr2D[$i]= split (/,/,$a);
$i++;
}
//print arr2D content
for ($j=0;$j<scalar @arr;$j++){
print $arr2D[$j][0].$arr2D[$j][1]."\n";
}
the problem is while trying to print arr2D content I got nothing... any suggestion ?