The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::RADSWrappers - Perl extension for making various network-related code less obnoxious

SYNOPSIS

  use Net::RADSWrappers;
  
  my $hostname = getHostName($some_ip);
  my $country  = getCountry($some_ip)
    or...
  my $country = getCountry($hostname);
  
  open (NETSTAT, "netstat -plan|") or die "$!\n";
  my %hosts = &grabConnections(\*NETSTAT,$ports{$service});

  

DESCRIPTION

This module exists solely to stash re-usable code snippets that I found myself copy-and-pasting over and over again throughou the course of re-writing a large number of BASH/sed/awk scripts for resource abuse detection (hence, RADS) at work.

EXPORT

None by default.

SEE ALSO

Geo::IPfree

Also, I will make available some scripts that use these and other functions that will be added in later updates.

AUTHOR

William Freeman, <deanf@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2009 by W. Dean Freeman

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.