projects
/
MojoFacets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70e19d3
)
use full_path
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 28 Dec 2010 16:49:48 +0000
(17:49 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 28 Dec 2010 16:49:48 +0000
(17:49 +0100)
lib/MojoFacets/Import/CSV.pm
patch
|
blob
|
history
diff --git
a/lib/MojoFacets/Import/CSV.pm
b/lib/MojoFacets/Import/CSV.pm
index
c89ac8e
..
d879169
100644
(file)
--- a/
lib/MojoFacets/Import/CSV.pm
+++ b/
lib/MojoFacets/Import/CSV.pm
@@
-9,8
+9,7
@@
use File::Slurp;
use Data::Dump qw(dump);
use Encode;
-__PACKAGE__->attr('path');
-__PACKAGE__->attr('full_path'); # FIXME remove full_path
+__PACKAGE__->attr('full_path');
my $null = ''; # FIXME undef?
@@
-42,7
+41,7
@@
sub _split_line {
sub data {
my $self = shift;
- my $path = $self->full_path
|| $self->path
;
+ my $path = $self->full_path;
my $data = read_file $path, { binmode => ':raw' }; # FIXME configurable!
my $encoding = 'utf-8';