in reply to Cleaning up a script

No, but theres an end block. It does exactly what you expect, executing the block and the end of the program. Like so:

END { print "I'm at the end!"; close (DEBUG); }

Btw, I think perl automatically closes files when a program has finished execution.