http://www.perlmonks.org?node_id=1026854


in reply to Get home dir from shell

If your CGI script is being run from a web server like apache, you likely won't see a home directory. The script would be running as user apache, which does not have a home directory. Whose home directory are you expecting?