develooper Front page | perl.perl5.porters | Postings from February 2003

Re: [perl #21348] Regex remembers too much ?

Thread Previous | Thread Next
From:
Enache Adrian
Date:
February 23, 2003 19:19
Subject:
Re: [perl #21348] Regex remembers too much ?
Message ID:
20030224031608.GA806@ratsnest.hole
On Mon, Feb 24, 2003 at 03:52:31AM +0100, Andreas J. Koenig wrote:
> ----Program----
> $_="a"; print 1 if /\pL+$/;s/a//; $_="a"; print 2 if /\pL+$/;
> 
> ----Output of .../perl-5.8.0@18652/bin/perl----
> 1
> ----EOF ($?='0')----
> ----Output of .../perl-5.8.0@18653/bin/perl----
> 12
> ----EOF ($?='0')----

Sorry :-)

Adi

Thread Previous | Thread Next


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