App-ipinfo
view release on metacpan or search on metacpan
lib/App/ipinfo.pm view on Meta::CPAN
Net::CIDR::cidrvalidate($compact);
}
=item * get_token
Return the API token. So far, this is just the value in the C<APP_IPINFO_TOKEN>
environment variable.
=cut
sub get_token ($class) {
$ENV{APP_IPINFO_TOKEN}
}
=item * output(MESSAGE)
Send the MESSAGE string to the output filehandle.
=cut
sub output ($app, $message) {
print { $app->output_fh } $message
}
=item * output_fh
Return the filehandle for output.
=cut
sub output_fh ($app) { $app->{output_fh} }
=item * template
=cut
sub template ($app) { $app->{template} }
=item * token
Return the IPinfo.io token
=cut
sub token ($app) { $app->{token} }
=back
=head1 SEE ALSO
=over 4
=item * L<Geo::IPinfo>
=item * IPinfo.io, L<https://ipinfo.io>
=back
=head1 SOURCE AVAILABILITY
The main source repository is in Github, and there are backup repos
in other services:
=over 4
=item * L<https://github.com/briandfoy/app-ipinfo>
=item * L<https://bitbucket.org/briandfoy/app-ipinfo>
=item * L<https://gitlab.com/briandfoy/app-ipinfo>
=item * L<https://codeberg.org/briandfoy/app-ipinfo>
=back
=head1 COPYRIGHT
Copyright © 2025, brian d foy, all rights reserved.
=head1 LICENSE
You can use this code under the terms of the Artistic License 2.
=cut
__PACKAGE__;
( run in 0.576 second using v1.01-cache-2.11-cpan-2398b32b56e )