Perhaps some points for clarification:
- Does the same script run OK without the
use HTTP::Request line? If so, where on your
system is the CGI.pm module found? Is it
part of the
the/full/dir/path/8080/cgi-bin/usr/local tree?
- What operating system is this on? As was raised in the
original question, it's strange that the
error in HTTP::Request is reported as http/request.pm.
This might suggest there's an issue with case sensitivity
and/or tolerance of
file names, if this applies to your operating system.
- The symbolic link you tried was from where to where?
Also, when you say the contents were subsequently displayed
in the browser, was this the contents of the HTTP::Request
module, or of
the script? If it was the script, there may be a
misconfiguration present in your web server; if it's
Apache, see the documents on
using CGI for suggestions.
- Does the path represented by
the/full/dir/path/8080/cgi-bin/usr/local
represent a full perl installation, including a perl
binary? If so, is this perl compatible with the
binary specified by #!/usr/bin/perl used to
invoke your script? Is it the same perl that was
used (successfully) to test the script from the
command line?
As an aside, it probably is a bad idea to have a perl
binary beneath the cgi-bin directory, if that is the
case; if it's not
protected through proper permissions from the outside world,
it's not inconceivable that someone might come along
and try exploring things like
http://your.server/cgi-bin/usr/local/bin/perl,
and if they find it ...
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.