| 1 | package Template::Plugin::Dump; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use Data::Dump; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Template::Plugin; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use base qw( Template::Plugin ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use vars qw( $VERSION ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | $VERSION = '0.02'; | |
| 10 | |||
| 11 | 0 | ▶ | sub dump { |
|
Subroutine
dump: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 12 | 0 | my $self = shift; | |
| 13 | 0 | my $content = Data::Dump::dump(@_); | |
| 14 | 0 | return $content; | |
| 15 | } | ||
| 16 | |||
| 17 | 0 | ▶ | sub dump_html { |
|
Subroutine
dump_html: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 18 | 0 | my $self = shift; | |
| 19 | 0 | my $content = Data::Dump::dump(@_); | |
| 20 | |||
| 21 | 0 | $content =~ s/&/&/g; | |
| 22 | 0 | $content =~ s/</</g; | |
| 23 | 0 | $content =~ s/>/>/g; | |
| 24 | 0 | $content =~ s/ / /g; | |
| 25 | 0 | $content =~ s/"/"/g; | |
| 26 | 0 | $content =~ s/\n/<br>\n/g; | |
| 27 | |||
| 28 | 0 | return $content; | |
| 29 | } | ||
| 30 | |||
| 31 | 1 | 1; | |
| 32 | |||
| 33 | __END__ | ||