in reply to Problem with read( STDIN, $query_string, $ENV{'CONTENT_LENGTH'} );

mr_mischief is absolutely right.

Beyond that, CGI.pm reads from STDIN. When you call parse_form_data() there's nothing left on STDIN from which to read.

Replies are listed 'Best First'.
Re^2: Problem with read( STDIN, $query_string, $ENV{'CONTENT_LENGTH'} );
by KyussRyn (Acolyte) on Dec 21, 2010 at 02:00 UTC
    Thank you both for your replies. I was actually hoping for a module. I have found both CGI::Form and HTML::Form. BY reading through the CPAN review of these I think that the HTML::Form is a better module (more tests and better approval). Can you please let me know if I am on the right track, or if you have a better suggestion. Thanks again for all your help and future advice.