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
Smartmatch modifies array on failed match? #14746
Comments
From @wolfsageCreated by wolfsage@gmail.comPerhaps this is expected undesirable behaviour or perhaps this mhorsfall@dumai:~$ perl -e '@x[$b, $c] =~ "cat"; print 0+@x, "\n";' Perl Info
|
From @LeontOn Wed, Jun 10, 2015 at 5:07 PM, Matthew Horsfall <perlbug-followup@perl.org
Smartmatch can do many different things with the left-side argument. Some Leon |
The RT System itself - Status changed from 'new' to 'open' |
From @rjbs* Leon Timmermans <fawaka@gmail.com> [2015-06-10T11:39:08]
I dunno. This is pretty weird. What thhe heck is ~~ even doing here? Consider its dispatch. Base on this But also: ~$ perl -E 'say 1 if %INC{"feature.pm"} ~~ /feat/' What a mess. -- |
From @ikegamiOn Wed, Jun 10, 2015 at 11:39 AM, Leon Timmermans <fawaka@gmail.com> wrote:
Then why is it inconsistent? $ perl -e '@x[0] ~~ "cat"; print 0+@x, "\n";' $ perl -e '$x[0] ~~ "cat"; print 0+@x, "\n";' |
Migrated from rt.perl.org#125377 (status was 'open')
Searchable as RT125377$
The text was updated successfully, but these errors were encountered: