in reply to Re: Order of END blocks
in thread Order of END blocks

Let's split it up into two files, then, here's SomeModule.pm:
# SomeModule.pm package SomeModule; END { print "End of SomeModule\n"; } 1;
And here's a test script test.pl:
# test.pl use SomeModule; END { print "End of main\n"; }
Any way to jump in after SomeModule's END block?

Replies are listed 'Best First'.
Re: Re: Re: Order of END blocks
by meetraz (Hermit) on May 28, 2004 at 18:54 UTC
    Yes, and Zaxo has it right. If you want one end block to execute after another, it must be defined before the other. The packages or file separation are insignificant.