-
Notifications
You must be signed in to change notification settings - Fork 561
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
two bugs: substitution on a list #2760
Comments
From @vanstyn(After a report in clp.moderated from Peter Scott <peter@psdt.com>.) perl -Dr -we '(($y) = "x") =~ s/a/b/' shows that a) perl is trying to perform the substitution on the string Hugo |
From @chornySame result on perl 5.14.0. http://rt.perl.org/rt3/Ticket/Display.html?id=4514 On Wed Oct 25 08:41:02 2000, hv@crypt.compulink.co.uk wrote:
-- |
From [Unknown Contact. See original ticket]Same result on perl 5.14.0. http://rt.perl.org/rt3/Ticket/Display.html?id=4514 On Wed Oct 25 08:41:02 2000, hv@crypt.compulink.co.uk wrote:
-- |
From @jkeenanOn Fri Jun 10 00:01:29 2011, chorny wrote:
This is what I got after doing a debugging build on blead: ##### EXECUTING... Matching REx "a" against "1" $ ./perl -Ilib -V Characteristics of this binary (from libperl): |
From @iabynOn Fri, Sep 06, 2013 at 07:24:44PM -0700, James E Keenan via RT wrote:
I don't think either of these are bugs. In the first instance, its a list assignment evaluated in scalar context, $count = (($y) = "x"); which sets count to 1. In the second instance, (($y) = "x") in scalar context is an expression -- |
From @cpansproutOn Sat Sep 07 02:21:21 2013, davem wrote:
I agree, and have rejected this ticket. -- Father Chrysostomos |
@cpansprout - Status changed from 'open' to 'rejected' |
From @cpansproutOn Sat Sep 07 02:21:21 2013, davem wrote:
Hmm, but should aassign be allowed as a scalar lvalue? We also allow: read STDIN, @a=qw(foo bar), 10 Should we? (I wrote earlier that I agreed. Now I’m not sure. Reopening....) -- Father Chrysostomos |
@cpansprout - Status changed from 'rejected' to 'open' |
From @jkeenanOn Sun, 08 Sep 2013 05:25:23 GMT, sprout wrote:
More than 3 years later there has been no support for this idead -- indeed, no further comment in this RT. So I recommend we re-close it. Thank you very much. -- |
From @xsawyerxOn Mon, 02 Jan 2017 05:26:57 -0800, jkeenan wrote:
I recommend we seek affirmation to closing this from either Dave or Father C. |
From @iabynOn Sat, Sep 07, 2013 at 10:25:24PM -0700, Father Chrysostomos via RT wrote:
I'm now more inclined to think that it should be a compile-time error. c.f. my $p = 10; which gives Can't modify addition (+) in substitution (s///) at /home/davem/tmp/p line 7, near "s/3/4/)" (while changing it to s/3/4/r is legal and sets $x to 40). -- |
Migrated from rt.perl.org#4514 (status was 'open')
Searchable as RT4514$
The text was updated successfully, but these errors were encountered: