craft the url via joins
This commit is contained in:
parent
3ada526b23
commit
3914e0b43f
@ -23,8 +23,12 @@ sub get_mersenne_results() {
|
|||||||
|
|
||||||
my $mech = WWW::Mechanize->new;
|
my $mech = WWW::Mechanize->new;
|
||||||
|
|
||||||
my $url =
|
my $url = join '?', 'https://www.mersenne.org/results/',
|
||||||
'https://www.mersenne.org/results/?extf=1&exp1=1&execm=1&excert=1&exp_lo=2&exp_hi=&limit=10000';
|
join '&',
|
||||||
|
pairmap { join '=', $a, $b }
|
||||||
|
exp_lo => 2,
|
||||||
|
limit => 10_000,
|
||||||
|
map { $_ => 1 } qw/ extf exp1 execm excert /;
|
||||||
|
|
||||||
$mech->get($url);
|
$mech->get($url);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user