You may possibly be unable to run cgis at all, so I would
suggest you make sure of that first. I would probably just
ftp a very basic perl script first and see if that can be
run, showing if cgi is enabled and if perl is installed.
#!/usr/bin/perl
print "Content-type: text/plain\n\nworking\n";
For the other part of your post, I would say that yes,
re-inventing wheels is something to try, but don't expect
to actually use that code for anything you care about.
If you search all those posts about using CGI.pm, you can
find links such as the list here. I
suggest you read all of those related to cgi, including the
full specs and you continue to search for more documents.
The CGI.pm module has support for these features missing
in most parsers written:
- Multiple parameters with same name ?foo=hi&foo=blah
- File uploads with many files
- DOS attacks through long data uploads and the like
- A consistent interface
- Modularity
- Updateability (it's constantly scrutanized and updated
for exploits in its code and cgi security in general)
- Scalability
And probably another hundred more that I can't think of but
are needed if you want a fully safe and reliable cgi engine
other than
CGI.pm.
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.