I haven't configured a Perl script in about 2 years. Since then, I've slept about 600 times, thus I have forgotten my shallow Perl knowledge, so please bear with me. When does a script require a .pl or .cgi extension? The script I am trying now has .pl, but my server seems to require .cgi. My server has several flavors of perl at /user/bin/perl: perl, perl5 and perl5.0503. Do I configure the line that reads #!/usr/bin/perl as: #!/usr/bin/perl #!/usr/bin/perl5 #!/usr/bin/perl5.0503 (The first two work). When try to run Perlfect's Search script in my HTML, I don't get 400 or 500 series errors, my browser just displays the search.cgi script. I know I'm missing something simple, I just haven't figured it out yet. TIA

In reply to Basic Questions by Lobo Louie

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.