From ethandbrown@gmail.com Mon Apr 25 18: | 33:22 2011 |
MIME-Version: | 1.0 |
X-Spam-Status: | No, score=-6.209 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, RFC_ABUSE_POST=0.001, SPF_NEUTRAL=0.779, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham |
X-Spam-Flag: | NO |
X-Virus-Checked: | Checked by ClamAV on 16.mx.develooper.com |
Content-Type: | multipart/mixed; boundary=bcaec5016473ebb80b04a1c5ca78 |
Message-ID: | <BANLkTi=xDGmuzC4j=QHXOBRq7Auq2-t1fg@mail.gmail.com> |
X-Virus-Scanned: | Debian amavisd-new at bestpractical.com |
X-Spam-Score: | -6.209 |
Received: | from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id DC73824195F for <cpan-bug+Spreadsheet-XLSX@hipster.bestpractical.com>; Mon, 25 Apr 2011 18:33:21 -0400 (EDT) |
Received: | from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xCHbnOGdD1tp for <cpan-bug+Spreadsheet-XLSX@hipster.bestpractical.com>; Mon, 25 Apr 2011 18:33:19 -0400 (EDT) |
Received: | from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id D600124188A for <bug-Spreadsheet-XLSX@rt.cpan.org>; Mon, 25 Apr 2011 18:33:18 -0400 (EDT) |
Received: | (qmail 32013 invoked by uid 103); 25 Apr 2011 22:33:17 -0000 |
Received: | from x16.dev (10.0.100.26) by x1.dev with QMQP; 25 Apr 2011 22:33:17 -0000 |
Received: | from mail-vx0-f178.google.com (HELO mail-vx0-f178.google.com) (209.85.220.178) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Mon, 25 Apr 2011 15:33:15 -0700 |
Received: | by vxc11 with SMTP id 11so63307vxc.9 for <bug-Spreadsheet-XLSX@rt.cpan.org>; Mon, 25 Apr 2011 15:33:12 -0700 (PDT) |
Received: | by 10.52.71.70 with SMTP id s6mr62473vdu.80.1303770791917; Mon, 25 Apr 2011 15:33:11 -0700 (PDT) |
Received: | by 10.52.163.165 with HTTP; Mon, 25 Apr 2011 15:33:11 -0700 (PDT) |
Authentication-Results: | hipster.bestpractical.com (amavisd-new); dkim=pass header.i=@gmail.com |
Authentication-Results: | hipster.bestpractical.com (amavisd-new); domainkeys=pass header.from=ethandbrown@gmail.com |
Delivered-To: | cpan-bug+Spreadsheet-XLSX@hipster.bestpractical.com |
Subject: | Lots of "Use of uninitialized value" errors |
Return-Path: | <ethandbrown@gmail.com> |
Domainkey-Signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=PD3zat0UHlag3wzm2aMz3fCLA3U9wEe2iSDOciXnBNhkFHFExMrfaoIH80dUXx49xe 8awH2uGTarEAB73lQ8kjG48A3JyOpwq4mlNrxyIMJrVpRi43TTQkG6cOvjj5xdf+OQFf cfeptjOpPH16eiRdBnNVgnRoWzDjJZRlbLcDk= |
X-RT-Mail-Extension: | spreadsheet-xlsx |
X-Original-To: | cpan-bug+Spreadsheet-XLSX@hipster.bestpractical.com |
X-Spam-Check-BY: | 16.mx.develooper.com |
Dkim-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=76BASw+QzKDMJLZxooyJ4+ftP64rplhkwxT0Ilhjh+M=; b=Qb11U/OQgdia82f1vG7bIEgGs9q8ZR9yhEhN1eNZwqjO6Nh5pAewNA4Kor++wyi5Rn 8QM5p9gTU6EtTcjWrlBuXBnndhzCqaXczcoPg65ppGS6lBlH0KnOzgKyGAkVxWm6nkvo bVildyIay1SyK3jL8g7FG+p4Yo0J8UyDudPhE= |
Date: | Mon, 25 Apr 2011 15:33:11 -0700 |
X-Spam-Level: | |
To: | bug-Spreadsheet-XLSX@rt.cpan.org |
From: | Ethan Brown <ethandbrown@gmail.com> |
Content-Length: | 0 |
content-type: | text/plain; charset="utf-8" |
X-RT-Original-Encoding: | ISO-8859-1 |
Content-Length: | 723 |
First, my thanks for providing this module.
I found the module to print many errors of the form (test file attached).
Use of uninitialized value within @styles in hash element at
/usr/share/perl5/Spreadsheet/XLSX.pm line 189.
Use of uninitialized value $thisstyle in pattern match (m//) at
/usr/share/perl5/Spreadsheet/XLSX.pm line 190.
I tried checking for a defined $sty on line 189, and it fixed things
for this particular test file, however other files displayed the same
error. I found the following to fix the manifestation of the problem:
Replace
$thisstyle = $style_info{$styles[$sty]}
with
$thisstyle = $style_info{$styles[$sty]} if defined($sty) && $styles[$sty];
Hi hope you find this helpful.
--Ethan
X-Attachment-ID: | f_gmxzcx0p0 |
content-type: | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; name="test.xlsx" |
content-disposition: | attachment; filename="test.xlsx" |
Content-Transfer-Encoding: | base64 |
Content-Length: | 6546 |
Message body not shown because it is not plain text.