Dear Folks,
a kind of weird problem is making me crazy:
i wrote two scripts, all under mod_perl and they seem to be
ok. One calls the other one and passes some arguments to
it through the query_string (url_params); well, the latter
usually reads this query_string in correctly, like this:
record=32&lang=it
as i can see calling $query->query_string(), having defined
$query as a "new CGI" (CGI.pm).
So far so good, BUT, SOMETIMES (random?) query_string is read
like:
'record=32&lang=it'
which makes the script crash because in this case $language =
$query->url_param('lang') comes out to be "it'", instead of
"it", (unless i write $language =~ s/'// , of course, but i
refuse to!), and my script is instructed not to deal with
"it'" language...! 8|
More: this behaviour --a variable read as "'name'" instead of
"name"-- doesn't only happen with query string params but also
with other variables, rather often, like $query->remote_host()
or whatever you like...
Where could my (possibly idiotic) error be?
Finally, I can't understand if it's a modperl's (?) problem
(PerlWarns is On but _nothing_ is printed) or rather a
CGI.pm's strange behaviour, so I hope not to bother you too
much (i apologize).
Thank you very much!
Andrea Brugiolo
Andrea Brugiolo University of Padova
C.A.B. Inter Library Servicetel +39 049 8273673, fax +39 049 8273651
Inter Department Library of Psychology tel +39 049 8276477
http://bibliomedia.psy.unipd.it[EMAIL PROTECTED]