| 1 | package AnyEvent::FTP::Client::Site; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 2 | ▶ | use 5.010; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | # ABSTRACT: Dispatcher for site specific ftp commands | ||||||||||
| 8 | 2 | our $VERSION = '0.19'; # VERSION | |||||||||
| 9 | |||||||||||
| 10 | sub new | ||||||||||
| 11 | { | ||||||||||
| 12 | 1 | ▶ | my($class, $client) = @_; | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 13 | 1 | bless { client => $client }, $class; | |||||||||
| 14 | } | ||||||||||
| 15 | |||||||||||
| 16 | sub AUTOLOAD | ||||||||||
| 17 | { | ||||||||||
| 18 | 3 | ▶ | our $AUTOLOAD; | ||||||||
|
Subroutine
AUTOLOAD: called CC=2 SCAR=6.9
| |||||||||||
| 19 | 3 | my $self = shift; | |||||||||
| 20 | 3 | my $name = $AUTOLOAD; | |||||||||
| 21 | 3 | $name =~ s/^.*://; | |||||||||
| 22 | 3 | $name =~ s/_(.)/uc $1/eg; | |||||||||
| 23 | 3 | my $class = join('::', qw( AnyEvent FTP Client Site ), ucfirst($name) ); | |||||||||
| 24 | 3 | ▶ | eval qq{ use $class () }; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 25 | 3 | ▶ | die $@ if $@; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 3 | $class->new($self->{client}); | |||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | # don't autoload DESTROY | ||||||||||
| 30 | ▶ | sub DESTROY { } | |||||||||
|
Subroutine
DESTROY: not called CC=1 SCAR=0.0
| |||||||||||
| 31 | |||||||||||
| 32 | 2 | 1; | |||||||||
| 33 | |||||||||||
| 34 | __END__ | ||||||||||