Apache::Request param() problem?
Quick summary: Pulling parameters from a POST method using Apache::Request, largely to make it easier to deal with multiple value variables. The problem occurs if I have two variables, differentiated only by case (eg. wanthelp= and wantHelp=). Given the about pseudo-values, when using apr->param('wanthelp') OR apr->param('wantHelp') I get the same response, namely an array of two values and for each. Unfortunately, I have no control over what the variable names will be nor how many parameters they will have, so I must handle all possible cases. Am I missing some parameter to make this case-sensitive? Is there a better way to do this than using Apache::Request? Thanks! -- James Sheridan-Peters HealthCite.com [EMAIL PROTECTED]
Re: EmbPerl 1.20 hash/href problem?
> I know this problem. As you write above, writing > > Link > > will solve the problem. Because parser tries to find the end of the HREF arg > and if not quoted the end is after the first space or when he finds a >. > Because the quoting doesn't hurt (as far as I see) I haven't changed this > until now, to make the parser not to compilcated and therfor not to slow. > > Gerald Is this, or will this be, documented somewhere? Seeing as it is a kludge, even if it does help performance somewhat, is this going to be fixed in the future or is this Working As Designed? Any chance of having the "end of tag" logic changed to ignore characters inside the EmbPerl braces ( [+ ... +] ) since this is the most likely place to cause problems? Thanks. -- James Sheridan-Peters Sr. Application Developer Community of Science (410) 563-2378 x297 [EMAIL PROTECTED]
EmbPerl 1.20 hash/href problem?
The following testcast fails under 1.20. Basically, if there is a hash deref inside an HREF tag, without quotes, you get the following error: [27723]ERR: 13: Line 4: Missing right +] If you quote the HREF or create a temporary variable to hold the hash deref everything works fine. What follows is the testcase cgi script and the associated template file. #!/usr/local/bin/perl -T use strict; use HTML::Embperl (); use CGI (); use vars qw( $cgi $EMBPERL_OPTIONS ); $EMBPERL_OPTIONS= HTML::Embperl::optRawInput; $cgi= new CGI; print $cgi->header(); HTML::Embperl::Execute( { inputfile => "testcase.html", options => $EMBPERL_OPTIONS, } ); exit; And here is the template file: [- $topic->{TOPICID} = "hello" -] [# uncomment the next statement and change the hash deref in the HREF to "$tmp" to see things work with the variable version Note that the testcase still fails even if you do not pre-set $topic->{TOPICID} and its contents appear irrelevant. #] [# $tmp = $topic->{TOPICID} #] {TOPICID} +]>Link -- James Sheridan-Peters Sr. Application Developer Community of Science (410) 563-2378 x297 [EMAIL PROTECTED]