Sven Nierlein

NAME

Traceroute::Similar - calculate common route for a bunch of hosts

SYNOPSIS

  use Traceroute::Similar;
  my $ts = Traceroute::Similar->new();
  print $ts->get_last_common_hop('host1.com', 'host2.org');

DESCRIPTION

This module calculates the furthest common hop from a list of host. The backend will be Net::Traceroute:PurePerl or Net::Traceroute or system tracerroute (which may require root or sudo permissions).

CONSTRUCTOR

new ( [ARGS] )

Creates an Traceroute::Similar object. All arguments are optional.

    backend                   'Net::Traceroute' or 'Net::Traceroute::PurePerl'
    verbose                   verbose mode

METHODS

get_backend ( )

returns the used backend or undef if none found

get_last_common_hop ( host 1, host 2, [ host x...] )

return the last hop which is part of all given hosts

get_common_hops ( host 1, host 2, [ host x...] )

return an array ref of the common hops from this list of hosts

AUTHOR

Sven Nierlein, <nierlein@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2009 by Sven Nierlein

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 272:

You forgot a '=back' before '=head1'