I am new to using modules and have a few questions.

1)Is there any way besides looking through the c:/perl folders that i can see what modules i already have installed. (eg a small script i can run).

2)How can i find out EVERYTHING a module is capable of doing.

3)How do i find out what syntax is needed in my scripts to communicate properly with a module.

for example. I have just used CGI::cookies and was suprised to see that the following code actually worked. I wouldnt have know this had i not found it in an example on the net.

my $retreived_cookie = cookie('address');


4)Why do i have to write use CGI; as well as use CGI::Cookie;. Surely just calling CGI would work as the cookie stuff is in there too.

I would appreciate any response as i am sure it would help us module beginners.

Costas

In reply to Module questions by costas

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.