diff --git a/Geo-IPinfo/lib/Geo/IPinfo.pm b/Geo-IPinfo/lib/Geo/IPinfo.pm index 1b6df7d..99eb66c 100644 --- a/Geo-IPinfo/lib/Geo/IPinfo.pm +++ b/Geo-IPinfo/lib/Geo/IPinfo.pm @@ -37,6 +37,8 @@ my %valid_fields = ( ); my $base_url = 'https://ipinfo.io/'; my $country_flag_url = 'https://cdn.ipinfo.io/static/images/countries-flags/'; +my $cache_ttl = 0; +my $custom_cache = 0; my %default_countries = ( "BD" => "Bangladesh", "BE" => "Belgium", @@ -1051,9 +1053,6 @@ my %default_continents = ( "MZ" => { "code" => "AF", "name" => "Africa" } ); -my $cache_ttl = 0; -my $custom_cache = 0; - #------------------------------------------------------------------------------- sub new { diff --git a/README.md b/README.md index b5201ae..1e63de1 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ $loc = $details->loc; # 37.8342,-122.2900 * JSON * LWP::UserAgent * HTTP::Headers + * Net::CIDR * Net::CIDR::Set #### Usage