Based on the timing, I figured installing File::BOM somehow damaged the files of WWW::Mechanize

If the files got "damaged" then I think you'd be seeing some more serious error messages from scripts using WWW::Mechanize. If WWW::Mechanize optionally used File::BOM if it is installed, then that might possibly make sense. However, if I am understanding correctly, then you couldn't even get File::BOM installed in the first place? Even if you did, File::BOM isn't mentioned anywhere in the WWW::Mechanize source or the dependency tree. So overall I have to doubt whether simply installing (or trying to install) File::BOM would cause WWW::Mechanize to stop downloading files...

So I would suggest you debug the two problems separately: Why can't you get new modules installed, and why did your WWW::Mechanize stop working.

It looks like your cpan is malfunctioning, at various places you're getting error messages like "Couldn't move C:\strawberry\cpan\build\tmp-3808\ExtUtils-MakeMaker-7.30\lib to C:\strawberry\cpan\build\ExtUtils-MakeMaker-7.30-pzCWn3\lib: No such file or directory at C:\strawberry\perl\lib/CPAN/Distribution.pm line 516". This is quite strange. I'm not an expert at debugging the cpan client on Windows, so instead of suggesting things to try, which might muck stuff up even more, perhaps for now as a first step you can just switch CPAN clients - give App::cpanminus a try, cpanm should already come with Strawberry Perl.

As for WWW::Mechanize, it looks like you're checking for errors - are you getting any? Try removing the eval, since at this stage you're interested in seeing any error messages that may show up. Have you tried setting up a small script (Short, Self-Contained, Correct Example) that just downloads one file, to see if it still works in general? If not, post the code that doesn't work here.


In reply to Re: SOS: Ability to GET got BOMed by haukex
in thread SOS: Ability to GET got BOMed (resolved) by palkia

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.