Skip to main content.
home | support | download

Back to List Archive

Re: [Ignor Whois] Re: SWISH-E CGI and Windows

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Fri Apr 02 2004 - 18:13:12 GMT
On Fri, Apr 02, 2004 at 05:36:53PM +0100, tim barrett wrote:
> >CGI is just a program that returns output in a speccific format.  So if
> >it works on the command line and doesn't with the web server you need to
> >think about how those two environments differ.
> 
> Thanks for the note Bill it set me off in the right direction. It was a 
> bit of a novice perl mistake but then again thats me :-)
> 
> It was simply that perl would not accept DOS filepaths. Once I change 
> c:\progra~1\swish-e\swish-e to c:/progra~1/swish-e/swish-e everything 
> was fine.

That's not true.  Perl accepts DOS paths fine.  But the backslash is an
escape character when using within double quotes.

moseley@laptop:~$ cat x
print "c:\progra~1\SWISH-E\swish-e";
print 'c:\progra~1\SWISH-E\swish-e';

moseley@laptop:~$ perl -l x
c:progra~1SWISH-Eswish-e
c:\progra~1\SWISH-E\swish-e

-- 
Bill Moseley
moseley@hank.org
Received on Fri Apr 2 10:13:12 2004