Test::Ping::Ties::HIRES - HiRes Tie variable to Test::Ping


Test-Ping documentation Contained in the Test-Ping distribution.

Index


Code Index:

NAME

Top

Test::Ping::Ties::HIRES - HiRes Tie variable to Test::Ping

VERSION

Top

Version 0.01

DESCRIPTION

Top

In order to allow complete procedural interface to Net::Ping, even though it's an object, I use a Tie::Scalar interface. Every variable is also defined separately to make it cleaner and easier.

At some point they might be joined together in a single file, but I doubt it.

Please refrain from using this directly.

EXPORT

Top

None.

COPYRIGHT & LICENSE

Top


Test-Ping documentation Contained in the Test-Ping distribution.

package Test::Ping::Ties::HIRES;

use strict;
use warnings;

use Net::Ping;
use Tie::Scalar;

our $VERSION = '0.01';

sub TIESCALAR { return bless {}, shift;    }
sub FETCH     { return $Net::Ping::hires;  }
sub STORE     { $Net::Ping::hires = $_[1]; }

1;

__END__