Sponsoring The Perl Toolchain Summit 2025: Help make this important event another success Learn more

use strict;
use URI;
sub scrape {
scraper {
process '//td[@width="50%"]/font[@size="2"]', 'cidr[]', ['TEXT', sub {
m{^([0-9.]+)(/[0-9]+)};
+{ ip => $1, subnetmask => $2 };
}];
}->scrape(URI->new($url))->{cidr};
}
1;