Net::Routing - manage route entries on Operating Systems
use Net::Routing qw(:constants); my $route = Net::Routing->new( target => NR_TARGET_ALL(), family => NR_FAMILY_INET4(), ); $route->list;
This modules is currently just a wrapper around the netstat binary command to query routes on the local machine. Its aim is to normalize the way operating systems display network routes, and makes easy for other Perl modules to query interface routes (Net::Frame, for instance).
Class constructor. Optional target argument can be specified to limit routes to only those matching the target type.
Will print selected routes in a 'netstat' way.
Net::Frame, Net::Frame::Device
Patrice <GomoR> Auffret
Copyright (c) 2015, Patrice <GomoR> Auffret
You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.
To install Net::Routing, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Routing
CPAN shell
perl -MCPAN -e shell install Net::Routing
For more information on module installation, please visit the detailed CPAN module installation guide.