http://www.perlmonks.org?node_id=699685


in reply to Wildcard Mask to subnet mask

$ perl -MNet::Netmask -le 'print Net::Netmask->new("10.11.0.0#0.0.0.25 +5")' 10.11.0.0/24