Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: delete hash element while traversing via values coredumped

by ioannis (Prior)
on Jun 08, 2006 at 09:03 UTC ( #554240=note: print w/replies, xml ) Need Help??


in reply to delete hash element while traversing via values coredumped

It is not very difficult if you enable warnings; it says "Use of freed value in iteration". Note that $a{b} is deleted in both iterations, yet on on of the iterations it tries to derefence its value of the key (the value is already freed, along with the key.) The program decides to exit with die() and does not crash.

  • Comment on Re: delete hash element while traversing via values coredumped

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://554240]
help
Chatterbox?
[ambrus]: MLX: if it's a work email, then it's probably not Uncle Sam that matters, but what the account managing server at work thinks your name is. Those can differ. For example, we've had two co-workers with identical real name at one point,
[ambrus]: so one got a stupid suffix in the email account (people have email address based on their real name here usually).

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2017-01-19 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.