Home: Perl Programming Help: Regular Expressions:
Perl Regex to Grep Ping6 Result

New User

Jun 19, 2011, 11:53 PM

Views: 6586
Perl Regex to Grep Ping6 Result

Hi everyone,
I'm new to this forum and I really want to know deeply about perl,
My first question is, I have a ping.pl script, that I use to get and grep the ping result from several hostname or ip.

My office upgrade it's IP into IPV6, so I use Data::Validate::IP to check whether it ipv4 or ipv6 ,

The problem is, I didnt find any Perl Module that support ping6 like Net::Ping for ipv4. So I use ping6 command from linux it self to get the ping result,

My question, could I use regex to get ping output whether it request time out, reply, or destination unreachable??

Thanks in advance,


Jun 20, 2011, 10:07 AM

Views: 6580
Re: [franzramadhan] Perl Regex to Grep Ping6 Result

Searching cpan for ping ipv6 suggests that the following module might serve: AnyEvent::FastPing

- Miller