Re: CGI.pm parsing odity



on 16/05/2006, Randal L. Schwartz supposed :
"FrankB" == FrankB <you.can@xxxxxxxxxxx> writes:

In that file i regulary use the CGI function save() to save the satus of the form and it writes away an annoying trainling "=".
That is "$query save(FHANDLE);" right after the participant puts his name, so, the *wanted* dated is in there but I don't know where Perl gets that empty form parameter, is it even empty form data ? Is it an assignment ? Why this FrankB> trailing "=" sign ?

That's "Boulder" format.

Thanks for that hint :)

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
=
$
That is it, STDOUT being a FILEHANDLE but yup, that how it cats.

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

Not an assignment, not an empty key=value pair.. just a naked, lonely equation/equal sign.. aslike "EOF" or "__END__" ?

--
FrankB


.