Bug#589596: libexpect-simple-perl: We need tests (and examples)

Gordon Haverland ghaverla at materialisations.com
Sun Jul 18 23:39:58 UTC 2010


Package: libexpect-simple-perl
Version: 0.04-1
Severity: wishlist

If one looks at the man page for Expect::Simple, we see:

         use Expect::Simple;

         my $obj = new Expect::Simple
               { Cmd => [ dmcoords => 'verbose=1', "infile=$infile"],
                 Prompt => [ -re => 'dmcoords>:\s+' ],
                 DisconnectCmd => 'q',
                 Verbose => 0,
                 Debug => 0,
                 Timeout => 100
               };

         $obj->send( $cmd );
 
The manpage code snippet does not define $cmd.  This is a common problem
in perl, missing details (not limited to perl however).  But, if I download
the CPAN package and look in the test directory, I can see what $cmd is
supposed to be.  Even looking at the send() command on the man page doesn't
really tell someone what $cmd is supposed to be.  An example that I guess
I will figure out myself, is what if the first send() isn't needed?  Am
I supposed to send a zero length string, UNDEF, or not even call send()?

But a general comment as far as all CPAN modules goes, we really do need
the tests and any examples that are in the CPAN package.  And it would
be really nice if the web page describing libexpect-simple-perl (or
any libXXX-perl package) would actually say that this is the CPAN XXX
package.

But, this is all wishlist.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libexpect-simple-perl depends on:
ii  libexpect-perl                1.20-2     Expect.pm - Perl Expect interface
ii  perl                          5.10.1-13  Larry Wall's Practical Extraction 

libexpect-simple-perl recommends no packages.

libexpect-simple-perl suggests no packages.

-- no debconf information





More information about the pkg-perl-maintainers mailing list