in reply to Worrying regex issue with 5.8.0
This looks to me as though it's the same problem I tripped over: perl -e '$d=qr /\#\#/x; print $d, "\n";' produces:
when I thought it ought to produce (?x-ism:\#\#)(?x-ism:\#\#l )
I sent it in as a bug report, and it's been fixed:
The memory corruption bug should be corrected by change #17994 :
Change 17994 by rgs@rgs-home on 2002/10/10 20:19:27
Fix bug #17776 : memory corruption in qr/##/x
The actual bug is due to:
* So, if /x was used, we scan backwards from the * end of the regex. If we find a '#' before we * find a newline, we need to add a newline * ourself. If we find a '\n' first (or if we * don't find '#' or '\n'), we don't need to add * anything. -jfriedlSo if you can reorganise to stop this occuring, you'll be alright.
--
Tommy
Too stupid to live.
Too stubborn to die.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Worrying regex issue with 5.8.0
by ruscoekm (Monk) on Nov 15, 2002 at 11:14 UTC | |
by tommyw (Hermit) on Nov 15, 2002 at 11:37 UTC | |
by ruscoekm (Monk) on Nov 15, 2002 at 11:59 UTC |