| 1 | |||||||||||
| 2 | package | ||||||||||
| 3 | ASP4::OutBuffer; | ||||||||||
| 4 | |||||||||||
| 5 | 15 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 15 | ▶ | use warnings 'all'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | |||||||||||
| 9 | sub new | ||||||||||
| 10 | 5145 | ▶ | { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 11 | 5145 | return bless { data => '' }, shift; | |||||||||
| 12 | }# end new() | ||||||||||
| 13 | |||||||||||
| 14 | sub add | ||||||||||
| 15 | 40654 | ▶ | { | ||||||||
|
Subroutine
add: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 16 | 40654 | my ($s, $str) = @_; | |||||||||
| 17 | 40654 | ▶ | return unless defined($str); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 40652 | $s->{data} .= $str; | |||||||||
| 19 | 40652 | return; | |||||||||
| 20 | }# end add() | ||||||||||
| 21 | |||||||||||
| 22 | 10288 | ▶ | sub data { shift->{data} } | ||||||||
|
Subroutine
data: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 23 | 10289 | ▶ | sub clear { shift->{data} = '' } | ||||||||
|
Subroutine
clear: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 24 | |||||||||||
| 25 | sub DESTROY | ||||||||||
| 26 | 5133 | ▶ | { | ||||||||
|
Subroutine
DESTROY: called CC=1 SCAR=0.0
| |||||||||||
| 27 | 5133 | my $s = shift; | |||||||||
| 28 | 5133 | delete($s->{data}); | |||||||||
| 29 | 5133 | undef(%$s); | |||||||||
| 30 | }# end DESTROY() | ||||||||||
| 31 | |||||||||||
| 32 | 15 | 1;# return true: | |||||||||
| 33 | |||||||||||