diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-09-09 10:30:01 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-09-09 10:30:01 -0400 |
commit | 77a0c02cca684a5ff24df451436757c57cfd43c1 (patch) | |
tree | 372180e6942cc457b31332f2862b6fb286bf3c33 | |
parent | e3ef6105d772360589863157b126339a3b7f7bbf (diff) | |
download | spreadsheet-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.pm | 2 |
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; } |