in reply to exit() calls END{} blocks, but these blocks can exit()
print "Hello World\n"; exit 0; print "Goodbye World\n"; END{ print "End 1\n"; } END{ print "End 2\n"; exit 1; print "End of End 2\n"; } END{ print "End 3\n"; } # output: Hello World End 3 End 2 End 1 # exit status: 256
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: exit() calls END{} blocks, but these blocks can exit()
by meonkeys (Chaplain) on Jul 08, 2002 at 19:30 UTC |