![]() 8.156. Net::netent
You can access the structure fields with the methods or by importing the fields into your namespace with the :FIELDS import tag and accessing them by prepending n_ to the field name: $net_obj->name( ) $n_name Net::netent exports the following.
getnet (net) Frontend for getnetbyaddr and getnetbyname. If net is numeric, calls getnetbyaddr; otherwise, calls getnetbyname.
getnetbyaddr (addr, addrtype) Returns information about the net with address addr of type addrtype.
getnetbyname (netname) Returns information about the net with name netname. ![]() Copyright © 2002 O'Reilly & Associates. All rights reserved. |
|