#!/usr/bin/perl my($contentblock) = 0; my($what) = 0; my(@news); @lines = <>; foreach (@lines) { chomp; if ($_ eq "") { $contentblock = 1; next; } if ($_ eq "") { last; } if ($contentblock == 1) { if (/
/) {
# article
$desc = substr ($_, 3);
$desc = (split(/,$desc))[0];
$desc =~ s/&/&/g;
push (@news,$desc);
}
}
}
print "\n".
"