(Forwarded by jh@debian.org, Debian BTS #426192)
joey@kodama:~>perl -we 'use strict; use Expect; my $e=Expect->spawn("ls");
$e->expect(0, [q{[} => sub {}])'
Unmatched [ in regex; marked by <-- HERE in m/[ <-- HERE ()/ at
/usr/share/perl5/Expect.pm line 707.
joey@kodama:~>perl -we 'use strict; use Expect; my $e=Expect->spawn("ls");
$e->expect(0, ["-re" , q{[} => sub {}])'
Unmatched [ in regex; marked by <-- HERE in m/[ <-- HERE ()/ at
/usr/share/perl5/Expect.pm line 707.
According to the documentation, the '[' in the first expression should not
be interpreted as
a regexp.
Nobody/Anonymous ( nobody ) - 2008-11-23 20:57
5
Open
None
Nobody/Anonymous
None
None
Public
|
Date: 2009-06-22 19:41 It's still an issue in version 1.21 also. |