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

Hi, Suddenly whenever I try to run my perl scripts I am getting the following error.I installed http://search.cpan.org/~jesse/perl-5.12.2/lib/feature.pm in my "C:\Program Files\ActiveState Perl Dev Kit 6.0\lib" directory,can someone please tell me what wrong did I do?

Goto undefined subroutine &Exporter::heavy_export at C:/Perl/lib/Exporter.pm line 16. Compilation failed in require at C:\Program Files\ActiveState Perl Dev Kit 6.0\lib\/Spreadsheet/WriteExcel/OLEwriter.pm line 18. BEGIN failed--compilation aborted at C:\Program Files\ActiveState Perl Dev Kit 6.0\lib\/Spreadsheet/WriteExcel/OLEwriter.pm line 18. Compilation failed in require at C:\Program Files\ActiveState Perl Dev Kit 6.0\lib\/Spreadsheet/WriteExcel/Workbook.pm line 18. BEGIN failed--compilation aborted at C:\Program Files\ActiveState Perl Dev Kit 6.0\lib\/Spreadsheet/WriteExcel/Workbook.pm line 18. Compilation failed in require at C:\Program Files\ActiveState Perl Dev Kit 6.0\lib\/Spreadsheet/WriteExcel.pm line 17. BEGIN failed--compilation aborted at C:\Program Files\ActiveState Perl Dev Kit 6.0\lib\/Spreadsheet/WriteExcel.pm line 17. Compilation failed in require at Blacklisted_ErrorCRs.pl line 4. BEGIN failed--compilation aborted at Blacklisted_ErrorCRs.pl line 4.

  • Comment on undefined subroutine &Exporter::heavy_export at C:/Perl/lib/Exporter.pm line 16.

Replies are listed 'Best First'.
Re: undefined subroutine &Exporter::heavy_export at C:/Perl/lib/Exporter.pm line 16.
by Corion (Patriarch) on Dec 02, 2010 at 08:52 UTC

    feature.pm is distributed with Perl already. Copying a different feature.pm that did not come with your Perl into the Perl directory will likely not work, or maybe even break your existing Perl installation. Don't do that.

    Also, the error you posted seems quite unrelated to that. You don't even show the script that produces this error.

    It seems to me that you have messed up your Perl installation quite badly, as Exporter.pm seems to be broken. The best advice I can give is to restore from backup, or if you don't have working backups, to delete and reinstall Perl.