That sounds more like a configuration issue with your web server than a perl problem. You didn't even specify which web server you're using. Try asking your system and/or web site administrator how to get your code running from the web server. From the error message, it sounds like the web server is locating your code just fine (The page you are requesting cannot be served because of the extension configuration). It also tells the correct course of action: If the page is a script, add a handler. It sounds like you've tried the .pl and .cgi extensions, so it could be that the server would run them with a different extension--you need to have a chat with the administrator to find out if (a) they still need to configure the server to run scripts for your site, or (b) if you need to use a different extension on your scripts. (Other possibilities exist, too, such as the script may be in the wrong directory (i.e., one not configured to not hold scripts). But since it's not a perl problem, there's really no where to go but your admin.

...roboticus

When your only tool is a hammer, all problems look like your thumb.


In reply to Re: Help me run the 1st .pl by roboticus
in thread Help me run the 1st .pl 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.