MojoX::Ping - asynchronous ping with Mojolicious (DEPRECATED).
# Run this code as root use MojoX::Ping; my $ping = MojoX::Ping->new; $ping->ping('google.com', 1, sub { my ($ping, $result) = @_; print "Result: ", $result->[0][0], " in ", $result->[0][1], " seconds\n"; $ping->ioloop->stop; })->start;
MojoX::Ping is an asynchronous ping for Mojo (DEPRECATED). Use AnyEvent::Ping instead.
Mojolicious, Mojo::IOLoop
http://github.com/und3f/mojox-ping
Sergey Zasenko, undef@cpan.org.
undef@cpan.org
Copyright (C) 2010, Sergey Zasenko
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install MojoX::Ping, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MojoX::Ping
CPAN shell
perl -MCPAN -e shell install MojoX::Ping
For more information on module installation, please visit the detailed CPAN module installation guide.