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
In reply to Re: exit() calls END{} blocks, but these blocks can exit()
by Anonymous Monk
in thread exit() calls END{} blocks, but these blocks can exit()
by meonkeys
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |