| 1 | 53 | ▶ | use strict; use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | package Lingy::Exception; | ||||||||||
| 3 | |||||||||||
| 4 | 53 | ▶ | use overload '""' => sub { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.2
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 5 | 0 | $_[0]->{msg}; | |||||||||
| 6 | 53 | }; | |||||||||
| 7 | |||||||||||
| 8 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 9 | 0 | my ($class, $msg, $data) = @_; | |||||||||
| 10 | 0 | my $self = bless { msg => $msg }, $class; | |||||||||
| 11 | 0 | ▶ | $self->{data} = $data if $data; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | 0 | return $self; | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | 53 | 1; | |||||||||