Yes, CGI.pm does come bundled with Perl.

1. You can find out if a file exists on your system using:

locate -b CGI.pm

(Note that locate doesn't really search the file system - it searches an index of the file system, which is usually configured to be updated on a nightly basis, so results can be up to 24 hours out of date.)

To know if a module is installed in a place where Perl can find it, use:

perl -e1 -MCGI

This will print nothing if CGI can be loaded; and print an error if it cannot.

There's also a module called V which is pretty handy. It allows you to type this:

perl -MV=CGI

... and it will tell you what version number of CGI.pm you have installed.

2. App::cpanminus is a pretty good CPAN client. And Fedora probably makes a large number of Perl modules available via their own packaging system (yum if I recall correctly).

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

In reply to Re: CGI.pm on Fedora 16 by tobyink
in thread CGI.pm on Fedora 16 by Anonymous Monk

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.