CfgTie::TieNet 0.41 review

Download
by rbytes.net on

License: Perl Artistic License
File size: 83K
Developer: Randall Maas
0 stars award from rbytes.net

CfgTie::TieNet is a Perl module to tie in the net database.

SYNOPSIS

tie %net,'CfgTie::TieNet'

This is a straightforward hash tie that allows us to access the net database sanely.

Ties

There are two ties available for programmers:

tie %net,'CfgTie::TieNet'

$net{$name} will return a hash reference of the named net information

tie %net_addr,'CfgTIe::TieNet_addr'

$net_addr{$addr} will return a hash reference for the specified network address.

Structure of hash

Any given net entry has the following information assoicated with it:

Name

net name

Aliases

A list reference for other names for this net

AddrType

The type of address

Addr

The address

Additionally, the programmer can set any other associated key, but this information will only available to the running Perl script.

Requirements:
Perl

CfgTie::TieNet 0.41 keywords