| 1 | package Text::Template::Simple::Dummy; | ||||||||||||
| 2 | 34 | $Text::Template::Simple::Dummy::VERSION = '0.91'; | |||||||||||
| 3 | # Dummy Plug provided by the nice guy Mr. Ikari from NERV :p | ||||||||||||
| 4 | # All templates are compiled into this package. | ||||||||||||
| 5 | # You can define subs/methods here and then access | ||||||||||||
| 6 | # them inside templates. It is also possible to declare | ||||||||||||
| 7 | # and share package variables under strict (safe mode can | ||||||||||||
| 8 | # have problems though). See the Pod for more info. | ||||||||||||
| 9 | 34 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | 34 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 11 | 34 | ▶ | use Text::Template::Simple::Caller; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 12 | 34 | ▶ | use Text::Template::Simple::Util qw(); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 13 | |||||||||||||
| 14 | 4 | ▶ | sub stack { # just a wrapper | ||||||||||
|
Subroutine
stack: called CC=3 SCAR=11.4
Pod
documented
| |||||||||||||
| 15 | 4 | ▶ | my $opt = shift || {}; | ||||||||||
|
Condition50%1/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table50%1/2
A
A= shift()
| |||||||||||||
| 16 | 4 | ▶ | Text::Template::Simple::Util::fatal('tts.caller.stack.hash') | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 17 | if ref $opt ne 'HASH'; | ||||||||||||
| 18 | 4 | $opt->{frame} = 1; | |||||||||||
| 19 | 4 | return Text::Template::Simple::Caller->stack( $opt ); | |||||||||||
| 20 | } | ||||||||||||
| 21 | |||||||||||||
| 22 | 34 | 1; | |||||||||||
| 23 | |||||||||||||
| 24 | __END__ | ||||||||||||