I'm trying to figure out the best way of telling whether a script was invoked through a browser or from the command line. Right now I'm checking if ENV{"HTTP_HOST"} exists (yes = browser; no = command line). Does anyone know of a better way to do this? Thanks! Janine