Re: CGI.pm parsing odity
- From: merlyn@xxxxxxxxxxxxxx (Randal L. Schwartz)
- Date: 16 May 2006 09:50:35 -0700
"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 ***
.
- Follow-Ups:
- Re: CGI.pm parsing odity
- From: FrankB
- Re: CGI.pm parsing odity
- References:
- CGI.pm parsing odity
- From: FrankB
- CGI.pm parsing odity
- Prev by Date: Re: CGI.pm parsing odity
- Next by Date: Re: How to get the length of wav file?
- Previous by thread: Re: CGI.pm parsing odity
- Next by thread: Re: CGI.pm parsing odity
- Index(es):