diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-30 15:43:52 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-30 15:43:52 +0100 |
commit | 8ea6ea6db019f68436a69f36aae55a9f205efa35 (patch) | |
tree | 5c367520523c42b1935491d199b4e8f3c17b4708 /doc/nils-diplom/Dateistruktur/admin/LIST | |
parent | ec6e82dbcdc153b9973240cdff91a03b6d2dc886 (diff) | |
download | sqltutor-plugin-8ea6ea6db019f68436a69f36aae55a9f205efa35.tar.gz sqltutor-plugin-8ea6ea6db019f68436a69f36aae55a9f205efa35.tar.bz2 sqltutor-plugin-8ea6ea6db019f68436a69f36aae55a9f205efa35.zip |
doc: Nils Weber doesnt have an 'e' in his firstname
Diffstat (limited to 'doc/nils-diplom/Dateistruktur/admin/LIST')
-rwxr-xr-x | doc/nils-diplom/Dateistruktur/admin/LIST/parse-exel.pl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/doc/nils-diplom/Dateistruktur/admin/LIST/parse-exel.pl b/doc/nils-diplom/Dateistruktur/admin/LIST/parse-exel.pl new file mode 100755 index 0000000..1574c0d --- /dev/null +++ b/doc/nils-diplom/Dateistruktur/admin/LIST/parse-exel.pl @@ -0,0 +1,38 @@ +#!/usr/bin/perl -w + +use strict; +use Spreadsheet::ParseExcel; + +my $oExcel = new Spreadsheet::ParseExcel; + +die "Bitte eine EXCEL-DATEI als $0 angeben!" unless @ARGV; + +my $oBook = $oExcel->Parse($ARGV[0]); +my($iR, $iC, $oWkS, $oWkC); + +#print "FILE :", $oBook->{File} , "\n"; +#print "COUNT :", $oBook->{SheetCount} , "\n"; +#print "AUTHOR:", $oBook->{Author} , "\n" + +#if defined $oBook->{Author}; + +for(my $iSheet=0; $iSheet < $oBook->{SheetCount} ; $iSheet++) +{ + $oWkS = $oBook->{Worksheet}[$iSheet]; + #print "--------- SHEET:", $oWkS->{Name}, "\n"; + for(my $iR = $oWkS->{MinRow} ; + defined $oWkS->{MaxRow} && $iR <= $oWkS->{MaxRow} ; + $iR++) + { + print ">>>"; + for(my $iC = $oWkS->{MinCol} ; + defined $oWkS->{MaxCol} && $iC <= $oWkS->{MaxCol} ; + $iC++) + { + $oWkC = $oWkS->{Cells}[$iR][$iC]; + print ">", $oWkC->Value if($oWkC); + } + } +} + + |