9 |
|
|
10 |
=head1 NAME |
=head1 NAME |
11 |
|
|
12 |
WebPAC::Input::Excel - support for Microsoft Excell and compatibile files |
WebPAC::Input::Excel - support for Microsoft Excel and compatibile files |
13 |
|
|
14 |
=head1 VERSION |
=head1 VERSION |
15 |
|
|
96 |
|
|
97 |
my $rec = $self->fetch_rec( $mfn ); |
my $rec = $self->fetch_rec( $mfn ); |
98 |
|
|
99 |
} |
Columns are named C<A>, C<B> and so on... |
100 |
|
|
101 |
=cut |
=cut |
102 |
|
|
118 |
$log->debug("fetch_rec( $mfn ) row: $row cols: ",$sheet->{MinCol}," - ",$sheet->{MaxCol}); |
$log->debug("fetch_rec( $mfn ) row: $row cols: ",$sheet->{MinCol}," - ",$sheet->{MaxCol}); |
119 |
|
|
120 |
foreach my $col ( $sheet->{MinCol} ... $sheet->{MaxCol} ) { |
foreach my $col ( $sheet->{MinCol} ... $sheet->{MaxCol} ) { |
121 |
if (my $v = $sheet->{Cells}->[$row]->[$col]->{Val}) { |
if (my $v = $sheet->{Cells}->[$row]->[$col]->{_Value}) { ## XXX _Value = formatted | Val = unformated ! |
122 |
$rec->{ int2col($col) } = $v; |
$rec->{ int2col($col) } = $v; |
123 |
} |
} |
124 |
} |
} |
141 |
my $self = shift; |
my $self = shift; |
142 |
return $self->{size}; |
return $self->{size}; |
143 |
} |
} |
144 |
|
|
145 |
|
sub default_encoding { 'UTF-16' } |
146 |
|
|
147 |
=head1 AUTHOR |
=head1 AUTHOR |
148 |
|
|
149 |
Dobrica Pavlinusic, C<< <dpavlin@rot13.org> >> |
Dobrica Pavlinusic, C<< <dpavlin@rot13.org> >> |