jbaribeault has asked for the wisdom of the Perl Monks concerning the following question:
Any ideas?? Thanks ahead of time!#!/usr/bin/perl -w use strict; my $newnum = 0; while (<>) { next if $_ =~ /data bytes/; my ($a, $b) = split (/:/, $_); chomp $b; my ($seq, $seqnum, $lat, $latsec) = split '=', $b; $seqnum =~ s/\s+//; $seqnum =~ s/.time//; # for debug... # print "seq: $seqnum\texpected: $newnum\n"; unless ($seqnum == $newnum ) { print "Ping failed at " . localtime(time - ($seqnum - $newnum) +) . "\t"; print "restored at " . localtime() . "\t"; print "Total Time (s) = " . ($seqnum - $newnum) . "\n"; } $newnum = $seqnum + 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(z) Re: Redirect Question
by zigdon (Deacon) on Sep 15, 2003 at 16:44 UTC | |
by jbaribeault (Novice) on Sep 15, 2003 at 16:49 UTC | |
by zigdon (Deacon) on Sep 15, 2003 at 17:13 UTC | |
|
Re: Redirect Question
by phydeauxarff (Priest) on Sep 15, 2003 at 18:04 UTC | |
by jbaribeault (Novice) on Sep 15, 2003 at 18:45 UTC | |
|
Re: Redirect Question
by nimdokk (Vicar) on Sep 15, 2003 at 16:25 UTC | |
|
Re: Redirect Question
by kutsu (Priest) on Sep 15, 2003 at 16:32 UTC | |
by jbaribeault (Novice) on Sep 15, 2003 at 16:45 UTC |