Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Oh my God! Tie killed Perl!

by jmcnamara (Monsignor)
on Jan 15, 2002 at 15:24 UTC ( [id://138873]=note: print w/replies, xml ) Need Help??


in reply to (tye)Re: Oh my God! Tie killed Perl!
in thread Oh my God! Tie killed Perl!


I wish Perl would at least have an option to, during clean up, decrement the ref count on all globals, destroying things in the normal manner, and after that, would then go sweep up anything that was left over.

I think that this has been fixed, to some extent, in 5.7.2. The following is from the Changes file.

[ 7991] By: jhi on 2000/12/05 15:52:34 Log: Subject: Re: [PATCH] The largest hoax of all times? From: Ilya Zakharevich <ilya@math.ohio-state.edu> Date: Tue, 5 Dec 2000 00:40:25 -0500 Message-ID: <20001205004025.A4050@monk.mps.ohio-state.edu +> ... Fix the unpredictable order of DESTROYs. ...
The fix was also discussed in the p5p digest.

Nevertheless, on 5.7.2 I still have problems with Perl objects that contain sub-objects which are destroyed too early. However, I am not sure if this is part of the same problem.

--
John.

Replies are listed 'Best First'.
(tye)Re2: Oh my God! Tie killed Perl!
by tye (Sage) on Jan 15, 2002 at 19:33 UTC

    No, that patch fixes a completely different "problem" that never bothered me at all, something that I don't consider a "problem" much less a "bug".

    The patch causes unrelated objects to be destroyed in the reverse of the order in which they were created.

    The problem I'm talking about is that related objects (that is, objects where one object holds a reference to the other) can be destroyed in the wrong order if the objects manage to live until the "global destruction" phase of the Perl interpretter shutdown.

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-19 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found