dolphin has asked for the wisdom of the Perl Monks concerning the following question:
Hi brethren
While updating our environment from Perl 5.6.1 to 5.8.0 I had found something strange:
If you want to replace a regexp with a NaN (or undef or '') with the s-Operator and you have switched on the /e modifier (e.g. s/__I__//e), then Perl 5.8.0 doesn't behave like Version 5.6.1:
5.6.1: __I__ is replaced by nothing
5.8.0: __I__ is replaced by a string (mostly with "1", sometimes with strings from other variables)
Is this a well known behaviour? Where can I find a note about that?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: s-Operator in Perl 5.8.0
by dave_the_m (Monsignor) on Sep 01, 2004 at 08:05 UTC | |
by bronto (Priest) on Sep 01, 2004 at 08:45 UTC | |
by hv (Prior) on Sep 01, 2004 at 11:40 UTC | |
by dave_the_m (Monsignor) on Sep 01, 2004 at 10:36 UTC | |
|
Re: s-Operator in Perl 5.8.0
by davido (Cardinal) on Sep 01, 2004 at 06:46 UTC |