| 1 | # ABSTRACT: Global variables used across the Pinto utilities | ||||||||||||
| 2 | |||||||||||||
| 3 | package Pinto::Globals; | ||||||||||||
| 4 | |||||||||||||
| 5 | 150 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 150 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | |||||||||||||
| 8 | 150 | ▶ | use LWP::UserAgent; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | |||||||||||||
| 10 | #------------------------------------------------------------------------------ | ||||||||||||
| 11 | |||||||||||||
| 12 | 150 | our $VERSION = '0.14'; # VERSION | |||||||||||
| 13 | |||||||||||||
| 14 | #------------------------------------------------------------------------------ | ||||||||||||
| 15 | |||||||||||||
| 16 | ## no critic qw(PackageVars); | ||||||||||||
| 17 | 150 | our $current_utc_time = undef; | |||||||||||
| 18 | 150 | our $current_time_offset = undef; | |||||||||||
| 19 | 150 | our $current_username = undef; | |||||||||||
| 20 | 150 | our $current_author_id = undef; | |||||||||||
| 21 | 150 | our $is_interactive = undef; | |||||||||||
| 22 | |||||||||||||
| 23 | #------------------------------------------------------------------------------ | ||||||||||||
| 24 | # TODO: Decide how to expose this | ||||||||||||
| 25 | |||||||||||||
| 26 | 150 | ▶ | our $UA = LWP::UserAgent->new( | ||||||||||
|
Condition50%1/2
__PACKAGE__->VERSION || '???'
MC/DC0%0/1
__PACKAGE__->VERSION || '???'
__PACKAGE__->VERSION
Truth table50%1/2
A
A= __PACKAGE__->VERSION
| |||||||||||||
| 27 | agent => 'Pinto/' . (__PACKAGE__->VERSION || '???'), | ||||||||||||
| 28 | env_proxy => 1, | ||||||||||||
| 29 | keep_alive => 5, | ||||||||||||
| 30 | ); | ||||||||||||
| 31 | |||||||||||||
| 32 | #------------------------------------------------------------------------------ | ||||||||||||
| 33 | 150 | 1; | |||||||||||
| 34 | |||||||||||||
| 35 | __END__ | ||||||||||||