EDIT: I solved my own problem. Sorry to bother you.
I'm trying to create a -help option on a perl script. When -help is used it prints out the instructions without running the program. Right now I'm using die but it always prints out this after exiting:
EDIT: nevermind I just found it. I just end with exit().