in reply to Re: Re: Is possible to force the execution of a END block at runtime, without need to start global destruction?
in thread Is possible to force the execution of a END block at runtime, without need to start global destruction?

sub end { # Put here what you'd normally put in END {...} } END {end}

Abigail

  • Comment on Re: Is possible to force the execution of a END block at runtime, without need to start global destruction?
  • Download Code

Replies are listed 'Best First'.
Re: Re: Is possible to force the execution of a END block at runtime, without need to start global destruction?
by dmitri (Priest) on May 22, 2004 at 04:03 UTC
    I think the problem is the modules that already have END block. If the modules are a part of a different distribution, either bundled with Perl or from CPAN, do you really want to change all those? The trick is to call END transparently.
Re: Re: Is possible to force the execution of a END block at runtime, without need to start global destruction?
by gmpassos (Priest) on May 22, 2004 at 06:17 UTC
    Thanks for your reply, but as I said, I need to can call the code declared in END blocks, since this END blocks in the enverioment that I'm developing will be created by other users and modules, so, I can't control the way that they declare this END blocks, specially for modules that are already there.

    Graciliano M. P.
    "Creativity is the expression of the liberty".