in reply to File::Spec->rel2abs hanging?
You are not using rel2abs in its 2 argument form. Always use rel2abs in its 2 argument form, because your "current directory" will not be what you think it is when you are running as a CGI.