FirstGoodURL
view release on metacpan or search on metacpan
FirstGoodURL.pm view on Meta::CPAN
my $status = { 200 => 1 };
my $ctype = {};
my $ua;
sub import { $ua ||= LWP::UserAgent->new }
sub with {
my $class = shift;
carp "no content-type or status given" if not @_;
$status = { 200 => 1 };
$ctype = {};
(/\D/ ? $ctype->{$_} : $status->{$_}) = $_ for @_;
return $class;
}
sub in {
( run in 1.125 second using v1.01-cache-2.11-cpan-524268b4103 )