#!/usr/bin/perl #Khalid EZZARAOUI khalid@yromem.com use strict; if(!(defined $ARGV[0])) { print<Parse($ARGV[0]); my($iR, $iC, $oWkS, $oWkC); print '', "\n"; print "", "\n"; print "\t", "", "\n"; print "\t\t", "", $oBook->{File} , "", "\n"; print "\t\t", "", $oBook->{SheetCount} , "", "\n"; print "\t\t", "", $oBook->{Author} , "", "\n"; print "\t", "", "\n"; print "\t", "", "\n"; #for(my $iSheet=0; $iSheet < $oBook->{SheetCount} ; $iSheet++) { # $oWkS = $oBook->{Worksheet}[$iSheet]; foreach my $oWkS (@{$oBook->{Worksheet}}) { print "\t\t", "{Name}, "\" >", "\n"; for(my $iR = $oWkS->{MinRow} ; defined $oWkS->{MaxRow} && $iR <= $oWkS->{MaxRow} ; $iR++) { print "\t\t\t", "", "\n" ; for(my $iC = $oWkS->{MinCol} ; defined $oWkS->{MaxCol} && $iC <= $oWkS->{MaxCol} ; $iC++) { $oWkC = $oWkS->{Cells}[$iR][$iC]; print "\t\t\t\t", "", $oWkC->Value, "", "\n" if($oWkC); # print $oWkC->{_Kind}, "\n"; } print "\t\t\t", "", "\n" ; } print "\t\t", "\n" ; } print "\t", "", "\n"; print "", "\n";