| 1 | package HTML::Zoom::ArrayStream; | ||||||||||
| 2 | |||||||||||
| 3 | 14 | ▶ | use strictures 1; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 14 | ▶ | use base qw(HTML::Zoom::StreamBase); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | sub new { | ||||||||||
| 7 | 407 | ▶ | my ($class, $args) = @_; | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 8 | bless( | ||||||||||
| 9 | 407 | { _zconfig => $args->{zconfig}, _array => [ @{$args->{array}} ] }, | |||||||||
| 10 | $class | ||||||||||
| 11 | ); | ||||||||||
| 12 | } | ||||||||||
| 13 | |||||||||||
| 14 | sub _next { | ||||||||||
| 15 | 2195 | ▶ | my $ary = $_[0]->{_array}; | ||||||||
|
Subroutine
_next: called CC=2 SCAR=6.9
| |||||||||||
| 16 | 2195 | ▶ | return unless @$ary; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 1792 | return shift @$ary; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 14 | 1; | |||||||||