| 1 | package DB; | ||||||||||||
| 2 | 2 | ▶ | sub called_args { | ||||||||||
|
Subroutine
called_args: called CC=3 SCAR=11.1
Pod
undocumented
| |||||||||||||
| 3 | 2 | my ($level) = @_; | |||||||||||
| 4 | 2 | ▶ | my @foo = caller( ( $level || 0 ) + 3 ); | ||||||||||
|
Condition50%1/2
$level || 0
MC/DC0%0/1
$level || 0
$level
Truth table50%1/2
A
A= $level
| |||||||||||||
| 5 | 2 | ▶ | wantarray ? @DB::args : \@DB::args; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 6 | } | ||||||||||||
| 7 | |||||||||||||
| 8 | package Devel::Caller::Perl; | ||||||||||||
| 9 | 1 | ▶ | use DB; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | 1 | $Devel::Caller::Perl::VERSION = '1.4'; | |||||||||||
| 11 | 1 | ▶ | sub import { | ||||||||||
|
Subroutine
import: called CC=2 SCAR=7.2
| |||||||||||||
| 12 | 1 | ▶ | *{(caller)[0].'::called_args'} = \&called_args | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 13 | if $_[1] eq 'called_args'; | ||||||||||||
| 14 | } | ||||||||||||
| 15 | 2 | ▶ | sub called_args { &DB::called_args } | ||||||||||
|
Subroutine
called_args: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 16 | |||||||||||||
| 17 | 1 | 1; | |||||||||||
| 18 | |||||||||||||
| 19 | __END__ | ||||||||||||