1 package Net
::REPL
::Client
::Queue
;
5 use base
qw(Net::REPL::Client);
9 my $class = ref($proto) || $proto;
10 my $self = $class->SUPER::new
(
19 my ($self, $input) = @_;
20 push(@
{$self->{'input_queue'}}, $input);
26 $self->{'out_fh'} = \
*STDOUT
;
31 return shift(@
{$self->{'input_queue'}})
35 my ($self, @output) = @_;
37 push(@
{$self->{'output_queue'}}, @output);