I know know if this is the right place to ask about CPAN problems, but lately I have been having problems doing anything with my CPAN module. No matter what I try it prints out this error:
Warning: Your /private/var/root/Library/Application Support/.cpan/sour +ces/modules/02packages.details.txt.gz does not contain a Last-Updated + header. Please check the validity of the index file by comparing it to more than one CPAN mirror. I'll continue but problems seem likely to happen. DONE
After a while CPAN just crashes with the following error:
Going to read '/private/var/root/Library/Application Support/.cpan/sou +rces/modules/03modlist.data.gz' gzip: /private/var/root/Library/Application.gz: No such file or direct +ory gzip: Support/.cpan/sources/modules/03modlist.data.gz: No such file or + directory Terminal does not support GetHistory. Lockfile removed. Can't locate object method "data" via package "CPAN::Modulelist" (perh +aps you forgot to load "CPAN::Modulelist"?) at (eval 90) line 1. at /opt/local/lib/perl5/5.8.9/CPAN/Index.pm line 518 CPAN::Index::rd_modlist('CPAN::Index', '/private/var/root/Libr +ary/Application Support/.cpan/sources/m...') called at /opt/local/li + CPAN::Index::reload('CPAN::Index') called at /opt/local/lib/pe +rl5/5.8.9/CPAN.pm line 692 CPAN::all_objects('CPAN=HASH(0x9b3d74)', 'CPAN::Distribution') + called at /opt/local/lib/perl5/5.8.9/CPAN/Shell.pm line 1046 CPAN::Shell::failed('CPAN::Shell', 2, 1) called at /opt/local/ +lib/perl5/5.8.9/CPAN.pm line 413 eval {...} called at /opt/local/lib/perl5/5.8.9/CPAN.pm line 4 +13 CPAN::shell() called at -e line 1b/perl5/5.8.9/CPAN/Index.pm l +ine 85 CPAN::Index::reload('CPAN::Index') called at /opt/local/lib/pe +rl5/5.8.9/CPAN.pm line 692 CPAN::all_objects('CPAN=HASH(0x9b3d74)', 'CPAN::Distribution') + called at /opt/local/lib/perl5/5.8.9/CPAN/Shell.pm line 1046 CPAN::Shell::failed('CPAN::Shell', 2, 1) called at /opt/local/ +lib/perl5/5.8.9/CPAN.pm line 413 eval {...} called at /opt/local/lib/perl5/5.8.9/CPAN.pm line 4 +13 CPAN::shell() called at -e line 1
I don't know if this is a bug in CPAN or what I tried to reload the index but that also fails, I just installed CPAN v1.9402

In reply to Problem with my CPAN module by vendion

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.