Yep, I went to look if I had the Util.pm and I do.

You may have a Util.pm but according to perl you don't have one where it is supposed to be. (C:\Perl\lib\CGI\Util.pm) Perl *is* right about this, although you may possibly have a permissions problem.

So, donīt know what may be the problem.

See above, below, Simple Module Tutorial and A Guide to Installing Modules

This started happening when I replaced the CGI.pm for the new version (3.05)

In other words you have a broken install. Probably because you tried to cut and paste it, maybe for other reasons.

I suggest that the following simple steps will fix your problem. CGI.pm is CORE so its default location is C:\Perl\lib\CGI.pm with more stuff in C:\Perl\lib\CGI\*. Delete this file and directory. Your updgrade on the other hand probably got installed to C:\Perl\site\lib\CGI* so delete the file C:\Perl\site\lib\CGI.pm and directory C:\Perl\site\lib\CGI\* if they exist. If you use PPM also do ppm remove CGI which will complain about not finding stuff but will remove CGI from the install database. Now reinstall using either PPM or perl Makefile.PL && nmake && nmake test && nmake install. Do not try to cut and paste this module (and its ancillary bits). While it can be done correctly it is easy to do it wrong too.

cheers

tachyon


In reply to Re: Problems with CGI.pm by tachyon
in thread Problems with CGI.pm by Andre_br

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.