Help for this page

Select Code to Download


  1. or download this
    my $code = <<EOT;
    [head]
    ...
    
        print $str;
    }
    
  2. or download this
    my $code = <<EOT;
    [head]
    ...
        else { print "$1 " }                # Simply print non-header line
    +s
    }
    print "</div>"; # You always have to close last div, so just do it her
    +e
    
  3. or download this
    open, $FH, "<whatever.txt";
    for (<$FH>) {
        chomp;
        ...
    }