Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by chipmunk (Parson)
on Jan 08, 2001 at 09:53 UTC ( #50449=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://50449]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2019-12-08 18:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?