in reply to perl/cgi and x11

The error message "xhost: unable to open display "", ..." suggests to me that $ENV{DISPLAY} is undefined or set to an empty string. A fairly typical value for that environment variable is '0:0'.

X11 seems appropriate. What system are you running on?

-- Ken