/[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 12 by dpavlin, Sun Mar 15 20:39:55 2009 UTC revision 13 by dpavlin, Sun Mar 15 20:47:15 2009 UTC
# Line 49  foreach my $line ( split(/\r?\n/, $csv) Line 49  foreach my $line ( split(/\r?\n/, $csv)
49                          my @v = split(/\s*#\s*/, $v);                          my @v = split(/\s*#\s*/, $v);
50                          foreach my $pos ( 0 .. $#v ) {                          foreach my $pos ( 0 .. $#v ) {
51                                  $hash->{ $n . '_' . $pos } = $v[$pos];                                  $hash->{ $n . '_' . $pos } = $v[$pos];
52                                    $hash->{ $n . '_mobitel' } = $v[$pos] if $n =~ m{tel} && $v[$pos] =~ m{^09};
53                          }                          }
54                  }                  }
55                  $hash->{ $n } = $v;                  $hash->{ $n } = $v;

Legend:
Removed from v.12  
changed lines
  Added in v.13

  ViewVC Help
Powered by ViewVC 1.1.26