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
Malfunction of delete @x[@y] when @x and @y are identical #13742
Comments
From anno5@me.comI noticed that "delete @x[@y]" can go wrong in the special case when @x and @y are identical. Example: use warnings; The response is The warning is unexpected and the resulting array ought to still have 2 on index position 0. Indeed, "delete @array[my @dup = @array]" shows the expected behavior. Regards, Anno Summary of my perl5 (revision 5 version 18 subversion 2) configuration: Characteristics of this binary (from libperl): |
From @jkeenanOn Thu Apr 17 09:32:26 2014, anno5@me.com wrote:
I think this also is the expected behavior: ##### |
The RT System itself - Status changed from 'new' to 'open' |
From @jkeenanOn Thu Apr 17 09:32:26 2014, anno5@me.com wrote:
On the other hand, 'perldoc -f delete' says: ##### |
From @AbigailOn Thu, Jul 03, 2014 at 06:18:54PM -0700, James E Keenan via RT wrote:
Perhaps. But then, IMO, it should actually be removed, instead of lingering around. Abigail |
Migrated from rt.perl.org#121677 (status was 'open')
Searchable as RT121677$
The text was updated successfully, but these errors were encountered: