| 1 | package WWW::TasteKidResult; | ||
| 2 | |||
| 3 | # /* vim:et: set ts=4 sw=4 sts=4 tw=78: */ | ||
| 4 | #$Id$ | ||
| 5 | |||
| 6 | 8 | ▶ | use 5.008001; # require perl 5.8.1 or later |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 8 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 8 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | #use criticism 'brutal'; | ||
| 12 | |||
| 13 | 8 | ▶ | use version; our $VERSION = qv('0.1.2'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 8 | ▶ | use Carp qw/croak/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 8 | ▶ | use Data::Dumper qw/Dumper/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 8 | ▶ | use Scalar::Util qw/refaddr/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 8 | ▶ | use Class::InsideOut qw/public/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | # should probably be using moose, just seems like | ||
| 21 | # overkill for a module this simple/small | ||
| 22 | |||
| 23 | 8 | public name => my %name; | |
| 24 | 8 | public type => my %type; | |
| 25 | 8 | public wteaser => my %wteaser; | |
| 26 | 8 | public wurl => my %wurl; | |
| 27 | 8 | public ytitle => my %ytitle; | |
| 28 | 8 | public yurl => my %yurl; | |
| 29 | |||
| 30 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 31 | 1 | my $class = shift; | |
| 32 | 1 | my $self = bless \do { my $s }, $class; | |
| 33 | |||
| 34 | 1 | Class::InsideOut::register($self); | |
| 35 | |||
| 36 | 1 | $name{ refaddr $self } = undef; | |
| 37 | 1 | $type{ refaddr $self } = undef; | |
| 38 | 1 | $wteaser{ refaddr $self } = undef; | |
| 39 | 1 | $wurl{ refaddr $self } = undef; | |
| 40 | 1 | $ytitle{ refaddr $self } = undef; | |
| 41 | 1 | $yurl{ refaddr $self } = undef; | |
| 42 | |||
| 43 | 1 | return $self; | |
| 44 | } | ||
| 45 | |||
| 46 | 0 | ▶ | sub inspect_result_object { |
|
Subroutine
inspect_result_object: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 47 | 0 | print Dumper \%name; | |
| 48 | 0 | print Dumper \%type; | |
| 49 | 0 | print Dumper \%wteaser; | |
| 50 | 0 | print Dumper \%wurl; | |
| 51 | 0 | print Dumper \%ytitle; | |
| 52 | 0 | print Dumper \%yurl; | |
| 53 | 0 | return; | |
| 54 | } | ||
| 55 | |||
| 56 | 8 | 1; | |
| 57 | |||
| 58 | __END__ | ||