diff options
-rw-r--r-- | lib/Spreadsheet/ParseXLSX.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Spreadsheet/ParseXLSX.pm b/lib/Spreadsheet/ParseXLSX.pm index ac76800..263de2c 100644 --- a/lib/Spreadsheet/ParseXLSX.pm +++ b/lib/Spreadsheet/ParseXLSX.pm @@ -47,6 +47,7 @@ sub parse { my $zip = Archive::Zip->new; if (openhandle($file)) { + bless $file, 'IO::File' if ref($file) eq 'GLOB'; # sigh $zip->readFromFileHandle($file) == Archive::Zip::AZ_OK or die "Can't open filehandle as a zip file"; } |