chomp $line; my @fields = split "," , $line; ... print join( ',', @fields ) . "\n" ;
That won't work correctly on the data provided. You need to change split "," , $line to split "," , $line, -1.
In reply to Re^2: replace/substituion 4th field
by jwkrahn
in thread replace/substituion 4th field
by hyans.milis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |