Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37479972
en ru br
ALT Linux repositórios
S:0.04-alt1

Group :: Desenvolvimento/Perl
RPM: perl-Expect-Simple

 Principal   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

A versão atual: 0.04-alt1
Data da compilação: 18 agosto 2011, 10:47 ( 661.7 weeks ago )
Tamanho:: 20.36 Kb

Home page:   http://ftp.silvernet.ru/CPAN/authors/id/D/DJ/DJ…

Licença: Artistic
Sumário: wrapper around the Expect module
Descrição:

"Expect::Simple" is a wrapper around the "Expect" module which
should suffice for simple applications.  It hides most of the
"Expect" machinery; the "Expect" object is available for tweaking if
need be.

Generally, one starts by creating an Expect::Simple object using
new.  This will start up the target program, and will wait until
one of the specified prompts is output by the target.  At that point
the caller should send() commands to the program; the results are
available via the before, after, match_str, and match_idx
methods.  Since Expect simulates a terminal, there will be extra
"\r" characters at the end of each line in the result (on UNIX at
least).  This is easily fixed:

   ($res = $obj->before) =~ tr/\r//d;
   @lines = split( "\n", $res );

This is not done automatically.

Exceptions will be thrown on error (match with "/Expect::Simple/").
Errors from Expect are available via the error_expect method.
More human readable errors are available via the error method.

The connection is automatically broken (by sending the specified
disconnect command to the target) when the Expect::Simple object is
destroyed.

Mantenedor currente: Malo Skryleve

Lista dos contribuidores

Lista dos rpms provida por esta srpm:

  • perl-Expect-Simple
ACL:
     
    projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
    mantenedor atual: Michael Shigorin
    mantenedor da tradução: Fernando Martini aka fmartini © 2009