#!/usr/bin/perl -w use strict; use warnings; use Getopt::Long; use LWP::UserAgent; use File::Basename; my $app = basename($0); GetOptions( "a|arch=s" => \( my $arch = 'any' ), "d|distro=s" => \( my $distro = 'etch' ), "h|help" => \&usage, ); my $command = shift || &usage; my $search = build_url($distro, $arch, $command); my $content = get_content($search); for ($content =~ /