projects
/
virtual-ldap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cc919bb
)
correctly support multiple subfield delimiters (#) as one
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 16 Mar 2009 09:58:36 +0000
(09:58 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 16 Mar 2009 09:58:36 +0000
(09:58 +0000)
bin/csv2yaml.pl
patch
|
blob
|
history
diff --git
a/bin/csv2yaml.pl
b/bin/csv2yaml.pl
index
7faa9af
..
bfe5702
100755
(executable)
--- a/
bin/csv2yaml.pl
+++ b/
bin/csv2yaml.pl
@@
-50,7
+50,7
@@
foreach my $line ( split(/\r?\n/, $csv) ) {
$v =~ s[\x{17d}][F] if $n =~ m{spol};
if ( $v =~ m{#} ) {
- my @v = split(/\s*#\s*/, $v);
+ my @v = split(/\s*#
+
\s*/, $v);
foreach my $pos ( 0 .. $#v ) {
if ( $n =~ m{tel} ) {
if ( $v[$pos] =~ m{^09} ) {