From: Dobrica Pavlinusic Date: Sun, 15 Mar 2009 20:47:15 +0000 (+0000) Subject: add field for mobite phone X-Git-Url: http://git.rot13.org/?p=virtual-ldap;a=commitdiff_plain;h=2e9e448170822a6c83ad03e6a6a93190b490e420 add field for mobite phone --- diff --git a/bin/csv2yaml.pl b/bin/csv2yaml.pl index a40eb3e..4526926 100755 --- a/bin/csv2yaml.pl +++ b/bin/csv2yaml.pl @@ -49,6 +49,7 @@ foreach my $line ( split(/\r?\n/, $csv) ) { my @v = split(/\s*#\s*/, $v); foreach my $pos ( 0 .. $#v ) { $hash->{ $n . '_' . $pos } = $v[$pos]; + $hash->{ $n . '_mobitel' } = $v[$pos] if $n =~ m{tel} && $v[$pos] =~ m{^09}; } } $hash->{ $n } = $v;