Re: CGI.pm parsing odity



"FrankB" == FrankB <you.can@xxxxxxxxxxx> writes:

FrankB> In that file i regulary use the CGI function save() to save the satus of
FrankB> the form and it writes away an annoying trainling "=".

FrankB> $]cat /tmp/SCORES/JohnDoe.sorefile
FrankB> gives this :
FrankB> participant=JohnDoe
FrankB> =

FrankB> That is "$query save(FHANDLE);" right after the participant puts his name, so,
FrankB> the *wanted* dated is in there but I don't know where Perl gets that empty
FrankB> form parameter, is it even empty form data ? Is it an assignment ? Why this
FrankB> trailing "=" sign ?

That's "Boulder" format. It's the format of some key/value pair thingy
used in the Human Genome Project.

$ perl -MCGI -e 'CGI->new("a=b&c=d&c=e")->save(\*STDOUT);'
a=b
c=d
c=e
=
$

So yes, that trailing = is a sign that all data has been read, apparently.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@xxxxxxxxxxxxxx> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

*** Posted via a free Usenet account from http://www.teranews.com ***
.