From: Ken Youens-Clark Date: Sat, 3 May 2003 15:16:19 +0000 (+0000) Subject: Fixed error '"my" variable $wb_count masks earlier declaration in same scope at blib... X-Git-Tag: v0.02~152 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5c129a694e44671c3eea9837327ce5e32de5037a;p=dbsrgits%2FSQL-Translator.git Fixed error '"my" variable $wb_count masks earlier declaration in same scope at blib/lib/SQL/Translator/Parser/Excel.pm line 68.' --- diff --git a/lib/SQL/Translator/Parser/Excel.pm b/lib/SQL/Translator/Parser/Excel.pm index 2fb3c29..1ef080a 100644 --- a/lib/SQL/Translator/Parser/Excel.pm +++ b/lib/SQL/Translator/Parser/Excel.pm @@ -65,7 +65,7 @@ sub parse { my (%parsed, $wb_count, $num); my $table_no = 0; - my $wb_count = $wb->{SheetCount}; + $wb_count = $wb->{'SheetCount'} || 0; for $num (0 .. $wb_count - 1) { my $ws = $wb->Worksheet($num); my $name = $ws->{Name} || ++$table_no;