http://www.perlmonks.org?node_id=50449


in reply to (tye)Re: Deleting an element from the middle of an array
in thread Deleting an element from the middle of an array

It looks like delete was changed to act like undef when used on an array element (in Perl 5.6). I would guess this is just a bug. :(

delete() on arrays was actually added as support for pseudo-hashes. It's not a bug, it's just poor design. ;)

(That last bit is opinion, of course.)

  • Comment on Re: (tye)Re: Deleting an element from the middle of an array