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.
In reply to Re: Worrying regex issue with 5.8.0
by tommyw
in thread Worrying regex issue with 5.8.0
by ruscoekm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |