Help for this page

Select Code to Download


  1. or download this
    <p>This is a bad try to display text then code
    <pre>#! usr/bin/perl
    use strict;
    ...
    
    print "Hello World!";</pre>
    and then plain text again</p>
    
  2. or download this
    #! /usr/bin/perl
    
    use strict;
    ...
      $self->handler(text => sub {$text .= shift},"dtext");
      $self->handler(end  => sub {my $tag = shift; print $text,"\n\n" if($
    +tag eq 'pre' || $tag eq 'p');},"tagname");
    }