| 1 | package Test::Ping::Ties::TIMEOUT; | ||
| 2 | # ABSTRACT: Timeout Tie variable to Test::Ping | ||
| 3 | 19 | $Test::Ping::Ties::TIMEOUT::VERSION = '0.210'; | |
| 4 | 19 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 19 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 19 | ▶ | use Net::Ping; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 19 | ▶ | use Test::Ping; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 19 | ▶ | use Tie::Scalar; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 0 | ▶ | sub TIESCALAR { return bless {}, shift; } |
|
Subroutine
TIESCALAR: not called CC=1 SCAR=6.9
| |||
| 12 | 0 | ▶ | sub FETCH { return Test::Ping->_ping_object()->{'timeout'}; } |
|
Subroutine
FETCH: not called CC=1 SCAR=6.9
| |||
| 13 | 0 | ▶ | sub STORE { Test::Ping->_ping_object()->{'timeout'} = $_[1]; } |
|
Subroutine
STORE: not called CC=1 SCAR=6.9
| |||
| 14 | |||
| 15 | 19 | 1; | |
| 16 | |||
| 17 | __END__ | ||