Re: CGI.pm parsing odity
- From: FrankB <you.can@xxxxxxxxxxx>
- Date: Thu, 18 May 2006 14:10:34 +0200
xhoster@xxxxxxxxx pretended :
you.did@xxxxxxxxxxx wrote:Hello.
With CGI.pm Oo_style coding,
I use a form with GET method, it parses a textfield with name
attribute:
"participant".
I validate that parameter with Perl's substitute and match handlers in
order to make a file in "/tmp/SOMEDIR/" with names like :
"participant.scorefile".
In that file i regulary use the CGI function save() to save the satus
of
the form and it writes away an annoying trainling "=".
If that is the biggest annoyance you face, you are a lucky man indeed.
Not really, the biggest annoyance is errors in lines due to my own
stupidity or distraction.
$]cat /tmp/SCORES/JohnDoe.sorefile
gives this :
participant=JohnDoe
=
Have you bothered to read the documentation for the method you are using?
Not completely : my lazyness took it over and English is not my primary
language, so I thought i could post here and improve my English while learning Perl in deeper (grinns: "does this count as an excuse ?")
Why this trailing "=" sign ?
So that you can store multiple sessions states in one file, just as the
documentation says.
I will be back on that later, i am still in the documentation now :
testing out, reading, testing, reading..
Thank you for that answer though, it is makes sense but i don't really get it.
--
FrankB
.
- References:
- CGI.pm parsing odity
- From: FrankB
- Re: CGI.pm parsing odity
- From: xhoster
- CGI.pm parsing odity
- Prev by Date: Re: Net::Google 502 Bad gateway errors
- Next by Date: Re: CGI.pm parsing odity
- Previous by thread: Re: CGI.pm parsing odity
- Next by thread: Re: CGI.pm parsing odity
- Index(es):
Relevant Pages
|
|