/[virtual-ldap]/bin/csv2yaml.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /bin/csv2yaml.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 14 by dpavlin, Sun Mar 15 20:54:14 2009 UTC revision 15 by dpavlin, Sun Mar 15 21:07:54 2009 UTC
# Line 47  foreach my $line ( split(/\r?\n/, $csv) Line 47  foreach my $line ( split(/\r?\n/, $csv)
47    
48                  # fix tel fields                  # fix tel fields
49                  $v =~ s{\s+}{#}g if $n =~ m{tel};                  $v =~ s{\s+}{#}g if $n =~ m{tel};
50                    $v =~ s[\x{17d}][F] if $n =~ m{spol};
51    
52                  if ( $v =~ m{#} ) {                  if ( $v =~ m{#} ) {
53                          my @v = split(/\s*#\s*/, $v);                          my @v = split(/\s*#\s*/, $v);

Legend:
Removed from v.14  
changed lines
  Added in v.15

  ViewVC Help
Powered by ViewVC 1.1.26