my $html;$html.=$_ while<DATA>;$html=~s/[^ ]  <([^\/])/
'  <'.chr(ord($1)-32)/ges;$html=~s/\n//gs;$html=~s/^  /
/;$html=~s/ {2,3}/SPC/g;$html=~s/ //g;$html=~ s/SPC/ /g
;$html=~s/<([^\/])/'<'.chr(ord($1)-1)/ge;print join"\n"
,join('',($html=~m/(?:<([^\/])|( ))/g)),'';# Formatting
__END__

  <kbd>Type some HTML</kbd> into a <var>Variable</var>.
and you set it's <tt>value</tt>. <u>Amazing!</u>   <br>
<object code="srccode"><param name="code" value="Perl">
 <u>You don't have a Perl enabled browser :-( shame</u>
<img alt="Perl forever!" src="perl.png"></object><form>
Quote this text:<samp>Perl. Live it, love it, learn it.
</samp>  <q>Perl. Live it, love it, learn it. </q><font
color="#FF0000">Perl is the only cure to your headaches
</font><script language="JavaScript">function push_me()
{alert('Javascript won\'t help!') }</script><marquee>IE
won't help! </marquee>  <i>When this just hurts... </i>
<button name="pushme" onClick="push_me();return true;">
<dir> <li> Go for Perl! </dir> <font size="+1"><strong>
 Author: Casey Tweten, 100% Perl Geek </strong> </font>

In reply to HTML Formatting by cwest

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.