develooper Front page | perl.perl5.porters | Postings from April 2000

Re: [ID 20000331.027] (fwd) (?i) doesn't work properly with otherwise

Thread Previous
From:
Ilya Zakharevich
Date:
April 1, 2000 11:10
Subject:
Re: [ID 20000331.027] (fwd) (?i) doesn't work properly with otherwise
Message ID:
200004011910.OAA08147@monk.mps.ohio-state.edu
Gurusamy Sarathy writes:
> The following program prints "ok" with 5.005,
> but not with 5.6.
> 
> print "ok\n" if $foo =~ /(?i)/;

Compiling REx `(?i)'
size 2 first at 1
   1: EXACTF <>(2)
   2: END(0)
stclass `EXACTF <>' minlen 0
Matching REx `(?i)' against `'
Freeing REx: `(?i)'

2 bugs:

 a) We got a node "match an empty string";
 b) No reason for failure is reported.

Ilya

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About