Use <code></code> tags for posting code.
I normally wouldn't bother, but since i'm bored, here's the code somewhat cleaned up:
for example if:
$salesperson would be John Doe, and $MLS would be 12345
$display .= "<a href="$ENV{SCRIPT_NAME}?mail&nmsg&".$salesperson."&Lis
+ting$MLS\">$salesperson</a>\n";
### process input:
$salesperson = $ARGV[2];
$salesperson =~ s/%20/ /g;
$salesperson =~ s/\+/ /g
$subject = $ARGV[3];
$subject =~ s/%20/ /g;
$subject =~ s/\+/ /g
$display .= "<b>To: $salesperson<br></b>\n";
$display .= "<b>Subject: $subject<br></b>\n";
As display in MSIE 5.0:
To: John Doe
Subject: Listing 12345
As displayed in NN 4.7:
To: John
Subject:
To gain knowledge one must study,
Then study
this,
this and
this.
To gain wisdom one must observe.
Then do so.
-- ar0n | Just Another Perl Joe
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.