{"action":"created","issue":{"url":"https://api.github.com/repos/maxmind/MaxMind-DB-Writer-perl/issues/31","labels_url":"https://api.github.com/repos/maxmind/MaxMind-DB-Writer-perl/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/maxmind/MaxMind-DB-Writer-perl/issues/31/comments","events_url":"https://api.github.com/repos/maxmind/MaxMind-DB-Writer-perl/issues/31/events","html_url":"https://github.com/maxmind/MaxMind-DB-Writer-perl/issues/31","id":60448945,"number":31,"title":"Adding net ranges without CIDR notation","user":{"login":"coderholic","id":26079,"avatar_url":"https://avatars.githubusercontent.com/u/26079?v=3","gravatar_id":"","url":"https://api.github.com/users/coderholic","html_url":"https://github.com/coderholic","followers_url":"https://api.github.com/users/coderholic/followers","following_url":"https://api.github.com/users/coderholic/following{/other_user}","gists_url":"https://api.github.com/users/coderholic/gists{/gist_id}","starred_url":"https://api.github.com/users/coderholic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderholic/subscriptions","organizations_url":"https://api.github.com/users/coderholic/orgs","repos_url":"https://api.github.com/users/coderholic/repos","events_url":"https://api.github.com/users/coderholic/events{/privacy}","received_events_url":"https://api.github.com/users/coderholic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-10T04:17:48Z","updated_at":"2015-03-10T05:30:55Z","closed_at":"2015-03-10T04:46:14Z","body":"All of the examples use CIDR notation when adding network ranges, eg:\r\n\r\n```\r\nmy $network = Net::Works::Network->new_from_string( string => '8.23.0.0/16' );\r\n```\r\n\r\nIt is possible to provide a start and end IP instead? For example, I'd like to be able to do something like:\r\n\r\n```\r\nmy $network = Net::Works::Network->new_from_string( start => '205.156.219.1', end => '205.156.219.255');\r\n```\r\n\r\nWhich would be preferable to having to add the following 8 CIDR subnets that encapsulate that same range:\r\n\r\n```\r\n205.156.219.1/32\r\n205.156.219.2/31\r\n205.156.219.4/30\r\n205.156.219.8/29\r\n205.156.219.16/28\r\n205.156.219.32/27\r\n205.156.219.64/26\r\n205.156.219.128/25\r\n```"},"comment":{"url":"https://api.github.com/repos/maxmind/MaxMind-DB-Writer-perl/issues/comments/77998267","html_url":"https://github.com/maxmind/MaxMind-DB-Writer-perl/issues/31#issuecomment-77998267","issue_url":"https://api.github.com/repos/maxmind/MaxMind-DB-Writer-perl/issues/31","id":77998267,"user":{"login":"coderholic","id":26079,"avatar_url":"https://avatars.githubusercontent.com/u/26079?v=3","gravatar_id":"","url":"https://api.github.com/users/coderholic","html_url":"https://github.com/coderholic","followers_url":"https://api.github.com/users/coderholic/followers","following_url":"https://api.github.com/users/coderholic/following{/other_user}","gists_url":"https://api.github.com/users/coderholic/gists{/gist_id}","starred_url":"https://api.github.com/users/coderholic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderholic/subscriptions","organizations_url":"https://api.github.com/users/coderholic/orgs","repos_url":"https://api.github.com/users/coderholic/repos","events_url":"https://api.github.com/users/coderholic/events{/privacy}","received_events_url":"https://api.github.com/users/coderholic/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T05:30:55Z","updated_at":"2015-03-10T05:30:55Z","body":"I see some references to `range_as_subnets` in the tests, but it's not clear how I'd actually add a network range to the tree. Can you share something that's equivalent to this example (taken from your readme) for the range `205.156.219.1 - 205.156.219.255`:\r\n\r\n```\r\nmy $network\r\n    = Net::Works::Network->new_from_string( string => '8.23.0.0/16' );\r\n\r\n$tree->insert_network(\r\n    $network,\r\n    {\r\n        color => 'blue',\r\n        dogs  => [ 'Fido', 'Ms. Pretty Paws' ],\r\n        size  => 42,\r\n    },\r\n);\r\n```"}}