If you run the following (stripped down to show problem) script under normal cgi, and click the button, things work fine and you can see the form parameters (I Dump $q for convenience; in practice, I use $q->param()).
But if you run under mod_perl you don't see any POSTed params, although any in the query string do show.
Commenting out the "use XML::Simple", and all is well under mod_perl. Is there something else I'm missing or is XML::Simple doing something unexpected? Note that you don't even have to call any XML::Simple methods, just "use" it, to make this problem show up.
#! /perl/bin/perl -w use strict; use CGI; use Data::Dumper; use XML::Simple; print "Content-type: text/html\n\n"; print "<BODY><HTML>"; print '<h1>testing</h1>'; my $q = CGI::new; print "<pre>" . Dumper($q) . '</pre>'; print qq[ <form method=post > fld1 <input name=fld1 > <br>fld2 <input name=fld2> <br><input type=submit name=btn_submit value="submit"> </form> ]; print '</body></html>';
In reply to XML::Simple.pm breaks CGI.pm under mod_perl? by voyager
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |