can you help me? thanks#!/usr/bin/perl -w use strict; use Spreadsheet::ParseExcel; my $parser = Spreadsheet::ParseExcel->new( CellHandler => \&cell_handler, NotSetCell => 1 ); my $workbook = $parser->parse('file.xls'); sub cell_handler { my $workbook = $_[0]; my $sheet_index = $_[1]; my $row = $_[2]; my $col = $_[3]; my $cell = $_[4]; #### thise 'if' parse only the first sheet if ( $sheet_index > 1) { $workbook->ParseAbort(1); return; } } ### I think must add up something like this for(my $iSheet=0; $iSheet < $workbook->{SheetCount} ; $iSheet++) { my $oWkS = $workbook->{Worksheet}[$iSheet];
In reply to parse only one sheet at time In Spreadsheet::ParseExcel by cibien
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |