projects
/
virtual-ldap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e689705
)
add field for mobite phone
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 15 Mar 2009 20:47:15 +0000
(20:47 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 15 Mar 2009 20:47:15 +0000
(20:47 +0000)
bin/csv2yaml.pl
patch
|
blob
|
history
diff --git
a/bin/csv2yaml.pl
b/bin/csv2yaml.pl
index
a40eb3e
..
4526926
100755
(executable)
--- 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;