#!/usr/bin/perl use strict; use Net::IPv4Addr qw (:all); use Getopt::Long; my %opts = (); sub usage() { die < calculates the requested element from the address and prints it on stdout. If multiple options are specified, only the first one is printed. If no options are specified, the program prints the host part of the address, the network and the broadcast address as deduced from the given address. If address doesn't contains a netmask or mask length, the default one is assumed. =head1 AUTHOR Francis J. Lacoste =head1 COPYRIGHT Copyright (c) 1999,2000 iNsu Innovations Inc. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms as perl itself. =head1 SEE ALSO Network::IPv4Addr(3). =cut