Help for this page

Select Code to Download


  1. or download this
    our $print = sub { print shift };
    sub table (&) { $print->("<table>\n"); shift->(); $print->("</table>\n
    +"); }
    ...
    table { row { cell "foo" } };
    
    $html .= "</body></html>";
    
  2. or download this
    sub table (&) { print-"<table>\n"; shift->(); print "</table>\n"; 
    sub row (&) { print "<tr>"; shift->(); print "</tr>\n"; }
    ...
    close $fh;
    
    $html .= "</body></html>";