Name : perl-Template-Plugin-IPAddr
| |
Version : 0.03
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 15:07:48
|
Group : Development/Libraries/Perl
| Source RPM : perl-Template-Plugin-IPAddr-0.03-lp155.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Template::Toolkit plugin handling IP-addresses
|
Description :
This module implements an \'IPAddr\' class for handling IPv4 and IPv6-address in an object-orientated way. The module is based on the NetAddr::IP manpage and works on IPv4 as well as IPv6-addresses.
You can create a \'IPAddr\' object via the \'USE\' directive, adding any initial prefix as an argument.
[% USE IPAddr %] [% USE IPAddr(prefix) %]
Once you\'ve got a \'IPAddr\' object, you can use it as a prototype to create other \'IPAddr\' objects with the new() method.
[% USE IPAddr %] [% ip = IPAddr.new(prefix) %]
After creating an \'IPaddr\' object, you can use the supplied methods for retrieving properties of the prefix.
[% USE IPAddr(\'10.0.0.0/24\') %] [% IPAddr.netmask %] # 255.255.255.0 [% IPAddr.first %] # 10.0.0.1 [% IPAddr.last %] # 10.0.0.254
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.5/noarch |