1) By param I meant a key=value paramater passed to your script via CGI (I'm assuming this is cgi). These come in two forms, a "post" type, and your script reads those via STDIN and "get" types, which come after the question mark in the url. CGI.pm decodes both of these and gives you the value(s) with the method "param". Note that if there are any "posted" paramaters, CGI.pm will only return those when you call param, it will ignore any params in the "get" request.
#incoming url = script.cgi?foo=bar&baz=qux
my $c = CGI->new();
print $c->param('foo'); #prints bar
print $c->param('baz'); #prints qux
2) Uh, I guess. Thats an implementation issue, doesn't really matter.
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.