Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use Spreadsheet::ParseExcel; my $parse_excel = Spreadsheet::ParseExcel->new(CellHandler =>\&cell_ha +ndler,NotSetCell => 1); my $workbook = $parse_excel->Parse('file.xls'); sub cell_handler { my $workbook= $_[0]; my $sheet_index = $_[1]; my $row = $_[2]; my $col = $_[3]; my $cell= $_[4]; # Do something with the formatted cell value print $cell->{_Value}, "\n"; # I need to access the values here #print columns names: C1 ..C4 here #print values of C1 ..C4 here }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accessing values in a XSL file.
by jmcnamara (Monsignor) on Oct 27, 2010 at 16:41 UTC | |
|
Re: Accessing values in a XSL file.
by roboticus (Chancellor) on Oct 27, 2010 at 16:52 UTC | |
by Anonymous Monk on Oct 27, 2010 at 17:19 UTC | |
by jmcnamara (Monsignor) on Oct 27, 2010 at 17:33 UTC | |
by Anonymous Monk on Oct 27, 2010 at 17:46 UTC | |
by jmcnamara (Monsignor) on Oct 27, 2010 at 17:51 UTC | |
| |
|
Re: Accessing values in a XSL file.
by umasuresh (Hermit) on Oct 27, 2010 at 16:07 UTC |