Running Perl CGI from Windows
From: Jan Eden (lists_at_jan-eden.de)
Date: 01/30/04
- Next message: Ricardo Signes: "Re: perl editors"
- Previous message: Lonewolf: "Re: Re: perl editors"
- Next in thread: Jan Eden: "Re: Running Perl CGI from Windows"
- Maybe reply: Jan Eden: "Re: Running Perl CGI from Windows"
- Reply: Wolf Blaum: "Re: Running Perl CGI from Windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jan 2004 20:01:22 +0100 To: Perl Lists <beginners@perl.org>
Hi all,
I hope this is not too off-topic, since I hesitate to subscribe to yet another list...
I wrote a very simple CGI script to read data from an HTML form like this:
my $q = new CGI;
my $name = $q->param('name');
my $message = $q->param('message');
my $email = $q->param('email');
Later, the script opens a pipe to sendmail and prints a message into the pipe. It works fine when I tested it on my machine (Mac OS X). So far, so good.
But accessing the script from a Windows machine gives me the prepared error message. From the log I can see that all parameter values end up in the $name variable, along with the names of the second and third parameter. So the value of $name is:
John Doe email=john@doe.com message=This is the message
Note that the first parameter's name does not appear.
I suspect the problem has to do with line endings (\r vs \n), but I cannot figure out at which point of the process line endings could matter.
Any ideas?
TIA,
Jan
-- There are 10 kinds of people: those who understand binary, and those who don't
- Next message: Ricardo Signes: "Re: perl editors"
- Previous message: Lonewolf: "Re: Re: perl editors"
- Next in thread: Jan Eden: "Re: Running Perl CGI from Windows"
- Maybe reply: Jan Eden: "Re: Running Perl CGI from Windows"
- Reply: Wolf Blaum: "Re: Running Perl CGI from Windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|