Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl
    
    ...
    
    # Show the string with the HTML put back in.
    print "-----\n", $str, "\n\n" ;
    
  2. or download this
    This <b>contains</b> both text
    and <a href="http://www.w3c.org">html</a>.
    ...
    -----
    This <b>contains</b> both text
    and <a href="http://www.w3c.org">html</a>.
    
  3. or download this
    # Sub the tags back in.
    $str =~ s|<(\d+)>|<$tags[$1]>|gs ;