in reply to Re^2: Help with Geo::IP output
in thread Help with Geo::IP output
Currently you don't. It is a module in the App:: namespace. If you want to use the infrastructure generated by geoip steal the code from geoip or use it's json output in a pipe:
use JSON::MaybeXS; open my $gh, "-|", "geoip", "--json", $url_or_hostname or die; my $data = decode_json (do { local $/; <$gh> }); say $data->[0]{provider}; # [0] as it returns a list of matches
Enjoy, Have FUN! H.Merijn
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Help with Geo::IP output
by haukex (Archbishop) on Jun 24, 2020 at 14:07 UTC |
In Section
Seekers of Perl Wisdom