| 1 | package Pod::Tree::StrStream; | ||||||||||
| 2 | 30 | ▶ | use 5.006; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 30 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 30 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 30 | our $VERSION = '1.31'; | |||||||||
| 7 | |||||||||||
| 8 | 36 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=7.4
Pod
undocumented
| |||||||||||
| 9 | 36 | my ( $class, $ref ) = @_; | |||||||||
| 10 | |||||||||||
| 11 | 36 | ▶ | if ($ref) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | 0 | return bless $ref, $class; | |||||||||
| 13 | } | ||||||||||
| 14 | else { | ||||||||||
| 15 | 36 | my $st = ''; | |||||||||
| 16 | 36 | return bless \$st, $class; | |||||||||
| 17 | } | ||||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 4614 | ▶ | sub print { | ||||||||
|
Subroutine
print: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 21 | 4614 | my $st = shift; | |||||||||
| 22 | 4614 | $$st .= join( '', @_ ); | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 72 | ▶ | sub get { | ||||||||
|
Subroutine
get: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 26 | 72 | my $st = shift; | |||||||||
| 27 | 72 | my $s = $$st; | |||||||||
| 28 | 72 | $$st = ''; | |||||||||
| 29 | 72 | $s; | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | 30 | 1; | |||||||||
| 33 | |||||||||||