fix gender
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 15 Mar 2009 21:07:54 +0000 (21:07 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 15 Mar 2009 21:07:54 +0000 (21:07 +0000)
bin/csv2yaml.pl

index ec9bf4e..7faa9af 100755 (executable)
@@ -47,6 +47,7 @@ foreach my $line ( split(/\r?\n/, $csv) ) {
 
                # fix tel fields
                $v =~ s{\s+}{#}g if $n =~ m{tel};
 
                # fix tel fields
                $v =~ s{\s+}{#}g if $n =~ m{tel};
+               $v =~ s[\x{17d}][F] if $n =~ m{spol};
 
                if ( $v =~ m{#} ) {
                        my @v = split(/\s*#\s*/, $v);
 
                if ( $v =~ m{#} ) {
                        my @v = split(/\s*#\s*/, $v);