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