I have perl script which gets spawned from a cgi page and becomes a daemon process running on its own. If there is a die called from any module it is using, the script is getting called although it has been handled in eval block. Though, when I am running the script from the command prompt, everything is fine and the error is getting handled.
Note: From the command line also the script is becoming a daemon