projects
/
webpac2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57b068b
)
ignore \N fields (NULL)
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 16 Oct 2010 17:47:25 +0000
(17:47 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 16 Oct 2010 17:47:25 +0000
(17:47 +0000)
git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@1346
07558da8
-63fa-0310-ba24-
9fe276d99e06
lib/WebPAC/Input/TSV.pm
patch
|
blob
|
history
diff --git
a/lib/WebPAC/Input/TSV.pm
b/lib/WebPAC/Input/TSV.pm
index
ef6e375
..
4871fb8
100644
(file)
--- a/
lib/WebPAC/Input/TSV.pm
+++ b/
lib/WebPAC/Input/TSV.pm
@@
-48,7
+48,10
@@
sub new {
$rec->{'000'} = [ ++$self->{size} ];
my $col = 'A';
- $rec->{ $col++ } = Encode::decode_utf8( $_ ) foreach split(/\t/,$line);
+ foreach my $v ( split(/\t/,$line) ) {
+ next if $v eq '\N';
+ $rec->{ $col++ } = Encode::decode_utf8( $v );
+ }
push @{ $self->{_rec} }, $rec;