Well, you’re right. Right in the same way that there is no particular reason use strict; is necessary to working code. An exit; or exit 0; between your code and your subs is an excellent practice and can prevent goofy and accidental bugs.
| [reply] [d/l] [select] |
| [reply] |
Just what I said; completeness, avoiding accidental code being run somewhere left out, separation of concerns in the script, you know where the main logic ends without reading 1,000 lines of subroutines; I’ve been doing it for 15 years and it’s served me well. Consider closing filehandles—unnecessary, but also a good idea.
| [reply] |