use strict;
use warnings FATAL => 'all';
+use base qw(HTML::Zoom::StreamBase);
sub new {
my ($class, $args) = @_;
_stream => $args->{stream},
_match => $args->{match},
_filter => $args->{filter},
+ _zconfig => $args->{zconfig},
},
$class
);
sub next {
my ($self) = @_;
+ # peeked entry so return that
+
+ if (exists $self->{_peeked}) {
+ return (delete $self->{_peeked});
+ }
+
# if our main stream is already gone then we can short-circuit
# straight out - there's no way for an alternate stream to be there