From owner-freebsd-questions Sun Dec 9 7:15:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gadolinium.btinternet.com (gadolinium.btinternet.com [194.73.73.111]) by hub.freebsd.org (Postfix) with ESMTP id B4CFF37B416 for ; Sun, 9 Dec 2001 07:15:07 -0800 (PST) Received: from host217-35-35-227.in-addr.btopenworld.com ([217.35.35.227] helo=marvin.penguinpowered.org.uk) by gadolinium.btinternet.com with esmtp (Exim 3.22 #8) id 16D5fU-0007ZL-00; Sun, 09 Dec 2001 15:15:04 +0000 Received: from [192.168.10.11] (helo=pan.realtime.co.uk) by marvin.penguinpowered.org.uk with esmtp (Exim 3.33 #1) id 16D5k0-000091-00; Sun, 09 Dec 2001 15:19:44 +0000 Received: from waynep by pan.realtime.co.uk with local (Exim 3.33 #1) id 16D5dZ-0000Es-00; Sun, 09 Dec 2001 15:13:05 +0000 From: Wayne Pascoe To: Marty Landman Cc: questions@FreeBSD.ORG Subject: Re: question not asked (sysadmin - Perl?) References: <5.1.0.14.0.20011209100829.00a7bec0@pop.ulster.net> Date: 09 Dec 2001 15:13:04 +0000 In-Reply-To: <5.1.0.14.0.20011209100829.00a7bec0@pop.ulster.net> Message-ID: <86ofl8ifzz.fsf@pan.home.penguinpowered.org.uk> Lines: 35 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Marty Landman writes: > Hi, > > I think this question is in the spirit of "the only dumb questions are > the ones left unasked." > > > I've got the following program which is a test extracted from a > formerly running script on a website. Actually I slightly altered this > for posting to remove HTML tagging. > > > ------------------------------------------------------------ > > #!/usr/local/bin/perl > > print "Content-type: text/html\n\n"; > use Cwd; > for($root = cwd()) {print "Root eq $root"} > > __END__ > Firstly, whenever a web script doesn't work like you expect it to, check the ErrorLog for the virtualhost that you are running the script in. This will normally give you some indication of what the problem is. -- - Wayne Pascoe | 'tis far easier to get forgiveness than freebsd@molemanarmy.com | it is to get permission - probably someone http://www.molemanarmy.com | famous, but more often, my Dad. | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message