| 1 | package Experimental::Sample; | ||||||||||
| 2 | |||||||||||
| 3 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 3 | ▶ | use vars qw($VERSION @ISA @EXPORT $SIGNPOST $test_suite); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 3 | require Exporter; | |||||||||
| 7 | |||||||||||
| 8 | 3 | @ISA = qw(Exporter); | |||||||||
| 9 | |||||||||||
| 10 | |||||||||||
| 11 | sub new { | ||||||||||
| 12 | 0 | ▶ | my $pkg = shift; | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 13 | 0 | my $self = { @_ }; | |||||||||
| 14 | |||||||||||
| 15 | |||||||||||
| 16 | 0 | bless($self, $pkg); | |||||||||
| 17 | |||||||||||
| 18 | 0 | return $self; | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | # object methods - public | ||||||||||
| 22 | |||||||||||
| 23 | sub name { | ||||||||||
| 24 | 0 | ▶ | my ( $self, $name ) = @_; | ||||||||
|
Subroutine
name: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 25 | 0 | ▶ | if( defined( $name ) ){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 0 | $self->{name} = $name; | |||||||||
| 27 | } | ||||||||||
| 28 | 0 | return $self->{name}; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | |||||||||||
| 32 | 3 | 1; | |||||||||
| 33 | __END__ | ||||||||||