New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s/// flags influence regex use in the replacement body #6542
Comments
From perl-5.8.0@ton.iguana.beCreated by perl-5.8.0@ton.iguana.beThis code: outputs (as expected): However, this: perl -wle ' outputs: fun(<ab The only difference is the m modifier on the s/// Speculation: Perl Info
|
From @rgs"perl-5.8.0@ton.iguana.be (via RT)" wrote:
Yes. Good catch. Setting /m on a match or on a substitution is The interaction with A first step would be to make $* lexically scoped (a compile-time hint, |
From perl5-porters@ton.iguana.beIn article <20030603155453.4004_58e.rgarciasuarez@_ree._r>,
That makes things even weirder: perl -wle ' gives: Use of $* is deprecated at -e line 4. So setting $* to undef (or 0) indeed solves it.
Making $* lexically scoped probably already breaks pograms that still |
From @rgsperl5-porters@ton.iguana.be (Ton Hospel) wrote:
That's normal, because reading the value of $* at this point doesn't
I like this idea. |
From @rgsTon Hospel wrote:
I've verified that removing $* solves this bug (and breaks nothing But I've a question : $ perl -we '$*=1' When removing a deprecated feature, should the deprecation --- pp_hot.c (revision 1474) - if (pm->op_pmflags & (PMf_MULTILINE|PMf_SINGLELINE)) { |
From @ap* Rafael Garcia-Suarez <rgarciasuarez@free.fr> [2003-06-04 22:00]:
Sounds to me like it would be more sensible to change it to -- |
From @floatingatollFrom: Rafael Garcia-Suarez <rgarciasuarez@free.fr>
I submit that it should be retained for one release cycle following the - R. |
From guest@guest.guest.xxxxxxxxResolved by removing $* in perl 5.9.0. |
@rgs - Status changed from 'new' to 'resolved' |
From whatever@davidnicol.com
I submit that the error message should refer to a document $* is now an error: see perdoc perlvar -- |
@rgs - Status changed from 'open' to 'resolved' |
From @AbigailOn Sat, Jun 14, 2003 at 11:45:51PM -0500, david nicol wrote:
Well, you can't make '$*' an error. The variable won't disappear - Abigail |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#22354 (status was 'resolved')
Searchable as RT22354$
The text was updated successfully, but these errors were encountered: