summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-09-09 10:30:01 -0400
committerJesse Luehrs <doy@tozt.net>2013-09-09 10:30:01 -0400
commit77a0c02cca684a5ff24df451436757c57cfd43c1 (patch)
tree372180e6942cc457b31332f2862b6fb286bf3c33
parente3ef6105d772360589863157b126339a3b7f7bbf (diff)
downloadspreadsheet-parsexlsx-77a0c02cca684a5ff24df451436757c57cfd43c1.tar.gz
spreadsheet-parsexlsx-77a0c02cca684a5ff24df451436757c57cfd43c1.zip
fix warnings under -w when parsing an xml file
->contents also returns a status code when called in list context
-rw-r--r--lib/Spreadsheet/ParseXLSX.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Spreadsheet/ParseXLSX.pm b/lib/Spreadsheet/ParseXLSX.pm
index 6efc3b8..d79515f 100644
--- a/lib/Spreadsheet/ParseXLSX.pm
+++ b/lib/Spreadsheet/ParseXLSX.pm
@@ -538,7 +538,7 @@ sub _parse_xml {
die "no subfile named $subfile" unless $member;
my $xml = XML::Twig->new;
- $xml->parse($member->contents);
+ $xml->parse(scalar $member->contents);
return $xml;
}