Subject: | loading traceroute text with DNS lookups |
This trivial program:
iscah% more trace2.pl
use strict;
use warnings;
use Net::Traceroute;
my $trace = Net::Traceroute->new(text => <<EOF);
traceroute to 8.8.8.8 (8.8.8.8), 2 hops max, 60 byte packets
1 x.y.z (1.2.3.4) 1.336 ms 1.309 ms 1.305 ms
2 a.b.c (5.6.7.8) 13.166 ms 14.209 ms 26.454 ms
EOF
Crashes with this error:
iscah% perl trace2.pl
Unmatched [ in regex; marked by <-- HERE in m/^ (!<\d+>|\?|![ <-- HERE ]?) ?/ at /home/ollisg/.perlbrew/libs/perl-5.18.2c@dev/lib/perl5/Net/Traceroute.pm line 693.
OS is Debian Linux (both for where the traceroute is run and for where the Net::Traceroute parses its text).
It works if I pass -n into traceroute (turning off DNS lookups).