ALT repositories
Last updated at Fri, 24 Jul 2020 16:39:53 +0000 | SRPMs: 18310
en ru
SRPMs in branches
hide window
Other repositories
hide window
CPAN: 0.04

Group :: Development/Perl
Source RPM: perl-Expect-Simple
Current version: 0.04-alt1
Built: almost 9 years ago
Size: 20.4 KB
Repocop status: ok
Gear:   http://git.altlinux.org/gears/p/perl-Expect-Simple.git
Archive:   http://ftp.altlinux.org/pub/distributions/archive/sisyphus/index/src/p/perl-Expect-Simple
Home page:   http://ftp.silvernet.ru/CPAN/authors/id/D/DJ/DJERIUS/

License: Artistic
Summary: wrapper around the Expect module
Description:

"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.

List of contributors:

List of rpms provided by this srpm:
  • perl-Expect-Simple
Recent changes (last three changelog entries):

2011-02-16 Pavel Skrylev 0.04-alt1

    - initial build for ALT Linux Sisyphus
        
 
The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.