.pm files are perl modules - essentially resuable code that you can include and use. Have a look at perlmod and perlmodlib, then head over to http://search.cpan.org and see what an insane wealth of already invented wheels you have at your disposal. Tried and true solutions to common (and uncommon) problems people often bump into.

CGI.pm is one of those. It is what basically *everyone* uses to do dynamic HTML in perl, and it is very thouroughly tested, plus it has tons of convenience methods for you to use. You will not regret it if you start to use that instead of rolling your own.

You should already have CGI.pm and lots of other really useful modules included with your perl - try to type perl -V on the command line, and look at the directories that are listed under the entry @INC. Look in those paths, and there they should be. For documentation on them, use perldoc which should be included too, or go to http://perldoc.com.

Hope that helps. :)


You have moved into a dark place.
It is pitch black. You are likely to be eaten by a grue.

In reply to Re: Re: Re: Image Gallery by Dog and Pony
in thread Image Gallery by Milner99

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.