| 1 | package WWW::SlideShare::Object; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use Data::Dumper; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use Carp qw(confess); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | our $AUTOLOAD; | |||||||||
| 8 | 1 | our $VERSION="1.01"; | |||||||||
| 9 | |||||||||||
| 10 | sub new | ||||||||||
| 11 | 0 | ▶ | { | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 12 | 0 | my $class = shift; | |||||||||
| 13 | 0 | my $fields = shift; | |||||||||
| 14 | |||||||||||
| 15 | 0 | my $self = { '_data' => $fields }; | |||||||||
| 16 | 0 | bless $self, $class; | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | sub AUTOLOAD | ||||||||||
| 20 | 0 | ▶ | { | ||||||||
|
Subroutine
AUTOLOAD: not called CC=2 SCAR=17.9
| |||||||||||
| 21 | 0 | my $self = shift; | |||||||||
| 22 | 0 | ▶ | confess "Too many arguments to method" if (@_ >= 1); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | |||||||||||
| 24 | 0 | my $name = $AUTOLOAD; | |||||||||
| 25 | 0 | $name =~ s/.*://; | |||||||||
| 26 | |||||||||||
| 27 | 0 | $self->{'_data'}->{$name} =~ s/^\s+//; | |||||||||
| 28 | 0 | $self->{'_data'}->{$name} =~ s/\s+$//; | |||||||||
| 29 | 0 | $self->{'_data'}->{$name}; | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | 0 | ▶ | sub DESTROY { } | ||||||||
|
Subroutine
DESTROY: not called CC=1 SCAR=0.0
| |||||||||||
| 33 | |||||||||||
| 34 | 1 | 1; | |||||||||
| 35 | |||||||||||
| 36 | __END__ | ||||||||||