We recently installed Spreadsheet-WriteExcel-2.14 and started encountering errors in the Encode module (core dumps).
(we are running perl 5.8.0 and the Encode version is 1.83)
The complaint was that perl could not find Encode/ConfigLocal.pm. So I went looking for it in the perl lib directories but all I could find was ConfigLocal_PM.e2x. Looking at this file revealed...
> cat ConfigLocal_PM.e2x # # Local demand-load module list # # You should not edit this file by hand! use "enc2xs -C" # package Encode::ConfigLocal; our $VERSION = $_LocalVer_; use strict; $_ModLines_ 1;
So I ran the enc2xs command and it built perl/lib/perl5/5.8.0/sun4-solaris/Encode/ConfigLocal.pm
Running perldoc enc2xs reveals...
enc2xs builds a Perl extension for use by Encode from either Unicode Character Mapping files (.ucm) or Tcl Encoding Files (.enc). Besides being used internally during the build process of the Encode module, you can use enc2xs to add your own encoding to perl. No knowledge of XS is necessary.
So I know what it does.
The question is, where is it documented that this needed to be done? I can't find it.

update:
I forgot to post the original errors. Here they are...
Can't locate Encode/ConfigLocal.pm in @INC (@INC contains: . /home/ora +mwh/scripts /home/utils/perl/lib/perl5/5.8.0/sun4-solaris /home/utils +/perl/lib/perl5/5.8.0 /home/utils/perl/lib/perl5/site_perl/5.8.0/sun4 +-solaris /home/utils/perl/lib/perl5/site_perl/5.8.0 /home/utils/perl/ +lib/perl5/site_perl) at /home/utils/perl/lib/perl5/5.8.0/sun4-solaris +/Encode.pm line 52. Can't use an undefined value as a HASH reference at /home/utils/perl/l +ib/perl5/site_perl/5.8.0/Spreadsheet/WriteExcel/Workbook.pm line 771 +during global destruction.

In reply to Encode/ConfigLocal.pm missing? by mifflin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.