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

Re^7: Throw from within a DESTROY block

by ikegami (Pope)
on Sep 07, 2011 at 03:20 UTC ( #924517=note: print w/replies, xml ) Need Help??

in reply to Re^6: Throw from within a DESTROY block
in thread Throw from within a DESTROY block

Oh, I thought you were saying you could use guard logic to fix your program.

I was confused because what you are saying is a complete non-sequitor. I didn't say you should always move code out of destructors. I'm well aware of the value of a destructor (and of tye's solution).

You ask for cheats to solve your particular case, but every time I provide one, you say it won't work in all circumstances. I'll say it again even though you said it was incendiary to say so, but that's not how Perl works.

If a particular solution doesn't work for your, say why, but don't say it can never work.

  • Comment on Re^7: Throw from within a DESTROY block

Replies are listed 'Best First'.
Re^8: Throw from within a DESTROY block
by ribasushi (Monk) on Sep 07, 2011 at 03:55 UTC
    See the updated root:
      What did you change? Highlighted "behaviour"? Everything I suggested allows you to get the same behaviour.
        See yet another update of the root node.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924517]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2018-06-25 13:05 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.