| 1 | package Acme::People::Happy; | ||
| 2 | |||
| 3 | # Pragmas. | ||
| 4 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | # Modules. | ||
| 8 | 4 | ▶ | use Class::Utils qw(set_params); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | # Version. | ||
| 11 | 4 | our $VERSION = 0.02; | |
| 12 | |||
| 13 | # Constructor. | ||
| 14 | sub new { | ||
| 15 | 3 | ▶ | my ($class, @params) = @_; |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 16 | |||
| 17 | # Create object. | ||
| 18 | 3 | my $self = bless {}, $class; | |
| 19 | |||
| 20 | # Process parameters. | ||
| 21 | 3 | set_params($self, @params); | |
| 22 | |||
| 23 | # Object. | ||
| 24 | 1 | return $self; | |
| 25 | } | ||
| 26 | |||
| 27 | # Simple question. | ||
| 28 | sub are_you_happy { | ||
| 29 | 0 | ▶ | return "Yes, i'm."; |
|
Subroutine
are_you_happy: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 30 | } | ||
| 31 | |||
| 32 | # Everybody can be happy. | ||
| 33 | sub everybody { | ||
| 34 | 0 | ▶ | return 'Everybody can be happy.'; |
|
Subroutine
everybody: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 35 | } | ||
| 36 | |||
| 37 | 4 | 1; | |
| 38 | |||
| 39 | __END__ | ||