Help for this page

Select Code to Download


  1. or download this
    #!perl -w
    use strict;
    ...
    while (<>) {
        print
    };
    
  2. or download this
    if (/^Article\b/) {
        s/\s*$//; # remove trailing whitespace and newlines
        print "Line [$_] is a heading.";
    };
    
  3. or download this
    $_ = "Article 1 News";
    print "\\subsection*{$_}";