File: simple.pl

package info (click to toggle)
libnet-traceroute-pureperl-perl 0.10-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 228 kB
  • sloc: perl: 748; makefile: 2
file content (19 lines) | stat: -rwxr-xr-x 363 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl

use strict;
use Net::Traceroute::PurePerl;

my $host = $ARGV[0] || 'www.perl.org';

my $t = new Net::Traceroute::PurePerl(
      host             => $host,
      debug            => 0,
      max_ttl          => 20,
      timeout          => 2,
      protocol         => 'icmp',
      concurrent_hops  => 6,
);

$t->traceroute;
$t->pretty_print;