"von" <vo*@vonvon.com> wrote in message
news:1b********************@comcast.com...
Then I use the following Perl script (write.pl) to send the data to my
text file:
________________________________
#!/usr/bin/perl
use CGI::Carp qw( fatalsToBrowser );
$isdata= $ENV{QUERY_STRING};
open (DATA, "+>>$data_file") or die "can't open $data_file $!";
print DATA "$isdata";
My problem is that the data arrives to the text file with '%20' in place
of the spaces.
ie: "This%20is%20the%20data"
You can do this kind of thing using your own code, but the best way to do it
is to use the functions provided by the Carp module.
Start with
use CGI;
and have a look at the documentation for it - it's a much better way to do
things than to process STDIN "manually", since someone else has already
written the code you need to do the job. Any beginner's tutorial online
that talks about perl and CGI will tell you what to do.
Matt