#! /usr/bin/perl use LWP::Simple; use URI::URL; print < Math arXiv http://xxx.lanl.gov/list/math/new What's New en-us ENDTOPMATTER my $url = url("http://xxx.lanl.gov/list/math/new"); my $content = get($url); my $record ="(abs.*?Title: (.*?)
.*?

[\n\s]*(.*?)

)"; my $keywords = join("|",@ARGV); my $nokeywords = !@ARGV; while ($content =~ /$record/gs) { my $link=$2; my $title=$3; chomp (my $abstract=$4); $1 =~ m:(Authors.*?)\1<\/b>/gs unless $nokeywords; if (($nokeywords) || ($abstract =~ /$keywords/)) { print < $title http://xxx.lanl.gov$link
$abstract]]>
ENDITEM }; }; print <
ENDBOTTOMMATTER