Expect
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Expect.pm view on Meta::CPAN
}
sub new {
my ($class, @args) = @_;
$class = ref($class) if ref($class); # so we can be called as $exp->new()
# Create the pty which we will use to pass process info.
my ($self) = IO::Pty->new;
die "$class: Could not assign a pty" unless $self;
bless $self => $class;
$self->autoflush(1);
# This is defined here since the default is different for
# initialized handles as opposed to spawned processes.
${*$self}{exp_Log_Stdout} = 1;
$self->_init_vars();
if (@args) {
# we got add'l parms, so pass them to spawn
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.900 second using v1.00-cache-2.02-grep-82fe00e-cpan-a086c87fca4 )