I have a perl script for which ENV variables can be set to direct specific outputs e.g. $debug, $verbose, $develop etc
Usually I run these from the command line
Set the environment variable before calling nohup, and it will be preserved when nohup exec()s (replaces itself with) perl.
nohup
perl
$ VERBOSE=1 nohup perl myscript.pl params ...