| 1 | package URI::XS; | ||
| 2 | 13 | ▶ | use 5.012; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 13 | ▶ | use XS::Framework; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 13 | our $VERSION = '2.1.7'; | |
| 6 | |||
| 7 | 13 | XS::Loader::bootstrap(); | |
| 8 | |||
| 9 | 13 | require overload; | |
| 10 | 13 | overload->import( | |
| 11 | '""' => \&to_string, | ||
| 12 | 'eq' => \&equals, | ||
| 13 | 'bool' => \&to_bool, | ||
| 14 | #'=' => sub {$_[0]}, | ||
| 15 | fallback => 1, | ||
| 16 | ); | ||
| 17 | |||
| 18 | 0 | ▶ | sub connect_port { |
|
Subroutine
connect_port: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 19 | 0 | my $self = shift; | |
| 20 | 0 | my $msg = '$uri->connect_port is deprecated, use $uri->port instead.'; | |
| 21 | 0 | warn "\e[95m$msg\e[0m"; | |
| 22 | 0 | return $self->port; | |
| 23 | } | ||
| 24 | |||
| 25 | 0 | ▶ | sub connect_location { |
|
Subroutine
connect_location: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 26 | 0 | my $self = shift; | |
| 27 | 0 | my $msg = '$uri->connect_location is deprecated, use $uri->location instead.'; | |
| 28 | 0 | warn "\e[95m$msg\e[0m"; | |
| 29 | 0 | return $self->location; | |
| 30 | } | ||
| 31 | |||
| 32 | 13 | 1; | |