rahulgsp83 has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use Spreadsheet::ParseExcel; my $excel = Spreadsheet::ParseExcel::Workbook->Parse("C:\\au.xls"); my $excel_file_url; #start looping the Excel sheet foreach my $sheet (@{$excel->{Worksheet}}) { $sheet->{MaxRow} ||= $sheet->{MinRow}; foreach my $row ($sheet->{MinRow} .. $sheet->{MaxRow}) { #looping for each row if ($row > 1) { #get the file url path from excel sheet at corresponding row, + col 0 my $cell_value=$sheet->{Cells}[$row][0]; $excel_file_url=$cell_value->{Val}; print $excel_file_url; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: parsing excel sheet from a perl program
by jrsimmon (Hermit) on Mar 08, 2010 at 19:49 UTC | |
|
Re: parsing excel sheet from a perl program
by NetWallah (Canon) on Mar 08, 2010 at 20:41 UTC | |
by rahulgsp83 (Novice) on Mar 09, 2010 at 14:09 UTC | |
by ww (Archbishop) on Mar 09, 2010 at 14:20 UTC | |
|
Re: parsing excel sheet from a perl program
by ww (Archbishop) on Mar 08, 2010 at 20:40 UTC |