Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: On timely destruction?

by Juerd (Abbot)
on Aug 28, 2002 at 07:42 UTC ( #193379=note: print w/ replies, xml ) Need Help??


in reply to On timely destruction?

Apo 4 describes my $foo is post { close } = open 'bar.txt';, so that's no problem. I wonder what would happen on push our @foos, $foo, though. Are properties connected to variables or to their values?

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.


Comment on Re: On timely destruction?
Select or Download Code
Re: Re: On timely destruction?
by theorbtwo (Prior) on Aug 28, 2002 at 07:59 UTC

    They can be attached to either. That purticular prop is on the variable, since it's attached to the my. If you wanted it to be on the value, you should have written my $foo = (open 'bar.txt') is post {close}. If I understand and remember Apoc4 correctly, which I might not.


    Confession: It does an Immortal Body good.

Re: Re: On timely destruction?
by John M. Dlugosz (Monsignor) on Aug 28, 2002 at 16:39 UTC
    Now if I didn't have to put is post {close} in every open but could have that implicit, that would be better. Except when I use closures...  is post { close if .dead } maybe, where an object can test if it has no (other) references, and registered that it needs to be counted.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2014-12-27 03:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls