Help for this page
my $exts = join( "|", qw/pdf doc ps txt/; @links = grep( !/\.(?:$exts)$/, @links );