1 2 3 4 5 6 7 8 9 10
$str = "1,2,3\n,4,5,6\n7,8,9"; $str =~ s/,//g; @array = split(/\\n/,$str); foreach(@array) { print $_; }
1 2 3
123 456 789