projects
/
MojoFacets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove hash from first column name
[MojoFacets.git]
/
lib
/
MojoFacets
/
Import
/
CSV.pm
diff --git
a/lib/MojoFacets/Import/CSV.pm
b/lib/MojoFacets/Import/CSV.pm
index
10e8343
..
e8fa196
100644
(file)
--- a/
lib/MojoFacets/Import/CSV.pm
+++ b/
lib/MojoFacets/Import/CSV.pm
@@
-60,6
+60,7
@@
sub data {
while ( my $row = $csv->getline( $fh ) ) {
if ( ! @header ) {
@header = @$row;
while ( my $row = $csv->getline( $fh ) ) {
if ( ! @header ) {
@header = @$row;
+ $header[0] =~ s/^#// if $path =~ m/\.tsv/i; # remove hash from 1st column
next;
}
my $item;
next;
}
my $item;