- or download this
my $first_line = <DATA>;
chomp $first_line;
$first_line =~ s/,/chr(31)/eg;
print $first_line, chr(30);
- or download this
print join chr(31), @fields, chr(30);
- or download this
print join(chr(31), @fields), chr(30);
- or download this
...
"Bonaire, Sint Eustatius and Saba|"Charissa, Lana, Liberty, Quail|4451
+7|18|
...
"Virgin Islands, British|"Otto, Macon, Caldwell, Sasha|87676|49|
...
- or download this
...
"Bonaire, Sint Eustatius and Saba","Charissa, Lana, Liberty, Quail",44
+517,18
...
"Virgin Islands, British","Otto, Macon, Caldwell, Sasha",87676,49
...