Name : perl-Tie-NetAddr-IP
| |
Version : 1.51
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.6.1
| Date : 2024-07-03 19:15:52
|
Group : Development/Libraries/Perl
| Source RPM : perl-Tie-NetAddr-IP-1.51-lp156.6.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : Implements a Hash where the key is a subnet
|
Description :
This module overloads hashes so that the key can be a subnet as in *NetAddr::IP*. When looking values up, an interpretation will be made to find the given key *within* the subnets specified in the hash.
The code sample provided on the *SYNOPSIS* would print out the locations of every machine in the \'foreach\' loop.
Care must be taken, as only strings that can be parsed as an IP address by *NetAddr::IP* can be used as keys for this hash.
Iterators on the hash such as \'foreach\', \'each\', \'keys\' and \'values\' will only see the actual subnets provided as keys to the hash. When looking up a value such as in \'$hash{$ipaddress}\' this IP address will be looked up among the subnets existing as keys within the hash. The matching subnet with the longest mask (ie, the most specific subnet) will win and its associated value will be returned.
This code can be distributed freely according to the terms set forth in the PERL license provided that proper credit is maintained. Please send bug reports and feedback to the author for further improvement.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.6/noarch |