| 1 | 14 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 14 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | package WebService::SendGrid::Newsletter::Base; | ||||||||||
| 4 | |||||||||||
| 5 | 14 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | # Checks if the required arguments are present | ||||||||||
| 8 | |||||||||||
| 9 | 51 | ▶ | sub _check_required_args { | ||||||||
|
Subroutine
_check_required_args: called CC=3 SCAR=11.0
| |||||||||||
| 10 | 51 | my ($self, $required_args, %args) = @_; | |||||||||
| 11 | |||||||||||
| 12 | 51 | foreach my $arg ( @{$required_args} ) { | |||||||||
| 13 | 86 | ▶ | if (!exists $args{$arg}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 16 | croak "Required parameter '$arg' is not defined"; | |||||||||
| 15 | } | ||||||||||
| 16 | } | ||||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 14 | 1; | |||||||||
| 20 | |||||||||||
| 21 | __END__ | ||||||||||