laziness, impatience, and hubris | |
PerlMonks |
Re: regex bug?by tfrayner (Curate) |
on Mar 14, 2002 at 13:03 UTC ( [id://151655]=note: print w/replies, xml ) | Need Help?? |
Hi,
MacOSX upgraded to perl5.6.1 returns: Example 2: func MAIN returns <func A returns <func B returns <2>+C(D())>> HTH, Tim Update: If I use warnings in the above code the linux versions behave identically to the MacOSX version. Interestingly, invoking perl with the -w switch and without use warnings still gives a segfault. Curious... Update 2: The recently-released MacPerl 5.6.1 shows similar behaviour to the linuxes (linices?), crashing instead with the message: Where line 15 is the recursive s/blah/&doFunc($1,$2)/ge line. I assume perl is balking at this point due to some unintentional recursion (i.e., possibly infinite?) which is abolished by using /geo instead of /ge. Why on earth use warnings should prevent this I have no idea. Bizarre (I think).
In Section
Seekers of Perl Wisdom
|
|