trickyq has asked for the wisdom of the Perl Monks concerning the following question:

I am learning the rules of the place, if I screw up and someone tells me, I fix it. Not a spammmer, just a beginner.

I am getting an error when I run any of these scripts that ive been working on It says:

format error: can't find EOCD signature at C:/Perl64/lib/Archive/Zip/Archive.pm line 695 Archive::Zip::Archive::_findEndOfCentralDirectory('Archive::Zi +p::Archive =HASH(0x2621d0)', 'IO::File=GLOB(0x2e6bf28)') called at C:/Perl64/lib/ +Archive/Zi p/Archive.pm line 581 Archive::Zip::Archive::readFromFileHandle('Archive::Zip::Archi +ve=HASH(0x 2621d0)', 'IO::File=GLOB(0x2e6bf28)', 'build.xlsx') called at C:/Perl6 +4/lib/Arch ive/Zip/Archive.pm line 548 Archive::Zip::Archive::read('Archive::Zip::Archive=HASH(0x2621 +d0)', 'bui ld.xlsx') called at C:/Perl64/site/lib/Spreadsheet/XLSX.pm line 33 Spreadsheet::XLSX::new('Spreadsheet::XLSX', 'build.xlsx') call +ed at C:\j dproj\build.pl line 5 Cannot open build.xlsx as Zip archive at C:/Perl64/site/lib/Spreadshee +t/XLSX.pm line 33.

Any idea what's causing that?

thank you

Replies are listed 'Best First'.
Re: Cant find EOCD signature error?
by ww (Archbishop) on Jun 06, 2012 at 15:43 UTC
Re: Cant find EOCD signature error?
by poj (Abbot) on Jun 06, 2012 at 13:41 UTC
    build.pl line 5 Cannot open build.xlsx
    I would guess there is something wrong with your build.xlsx spreadsheet, either it is corrupted or is not the correct format.
    poj
Re: Cant find EOCD signature error?
by sauoq (Abbot) on Jun 06, 2012 at 14:03 UTC
    Cannot open build.xlsx as Zip archive

    Emphasis added.

    -sauoq
    "My two cents aren't worth a dime.";

      I believe that .xlsx files are basically zipped XML files, so that makes some sense.

        I believe that .xlsx files are basically zipped XML files

        Hrm... well... apparently not this one! :-)

        -sauoq
        "My two cents aren't worth a dime.";