ewitch has asked for the wisdom of the Perl Monks concerning the following question:
Then various parameters from the HTTP POST are added, deleted, modified in $q by a subroutine. Back in "main" after the subroutine, when I dump out the parameters & values from $q I get output like this:use CGI::XMLForm; my $q = new CGI::XMLForm;
I know these will produce appropriately tagged & nested XML. But then when I try to convert it to XML like this: $finalXML = $q->toXML; ... when I print out $finalXML, the XML gets generated based on the original $q parameters and values, not the ones that have been cleaned up. And oddly enough it works on the old platform. I have tried cloning $q but run into a different problem. I have a feeling I am making a mistake related to handling of objects in perl. Can anyone help? Thanks.Name: /strega/header/id Value: 519 Name: /strega/header/type Value: P Name: /strega/header/options Value: exe_opt.dat Name: /strega/header/file Value: prod.xml.dat
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::XMLForm and modified query parameters
by benn (Vicar) on Jun 14, 2003 at 10:12 UTC |