Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: On timely destruction?

by Juerd (Abbot)
on Aug 28, 2002 at 07:42 UTC ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://193379]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found