Farly::Transport::Object - Transport base class
This is an abstract base class for Farly::Transport classes. It can not be used directly.
Returns true if current Transport object is adjacent to the other Transport object
$port_range->adjacent( $port );
Returns true if current Transport object contains the other Transport object
$port_range->contains( $port );
$port_1->equals( $port_2 );
Returns true if current Transport object intersects the other Transport object
$port_range_1->intersects( $port_range_2 );
Returns true if current Transport object port or ports are greater than the other Transport object port or ports.
$port_range->gt( $port );
Returns true if current Transport object port or ports are less than the other Transport object port or ports.
$port_range->lt( $port );
Returns the number of ports represented by the current Transport object
my $number_of_ports = $port_range->size();
Farly::Transport::Object Copyright (C) 2012 Trystan Johnson
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
To install Farly, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Farly
CPAN shell
perl -MCPAN -e shell install Farly
For more information on module installation, please visit the detailed CPAN module installation guide.