Re: CGI.pm parsing odity



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


.



Relevant Pages

  • Re: Pass array of worksheets to ActiveX DLL (VB6)
    ... After reading what you had to say I Googled some of his posts ... faster for them to develop their own applications, ... reach for the documentation every couple of minutes to find out "so ... Hank Scorpio ...
    (microsoft.public.excel.programming)
  • Re: Patents Unleashed and the future of Java Programming
    ... Have you ever seen documented an algorithm for determining the number ... However, I disqualify "reading coworkers code", "looking at ... Even the most anal retentive documentation efforts (I've worked on ...
    (comp.lang.java.programmer)
  • Re: RH6.0 and wine
    ... Of course I've been reading the documentation. ... And you can fuck right off with that attitude. ... question - you chose to start a flame war. ...
    (linux.redhat)
  • Re: DTV antennas?
    ... of the customer base has some form of written or on-screen learning or ... How about they can't find the documentation to read? ... It's not easy, rough reading, totally ... Manuals that are full of illustration and examples work ...
    (sci.electronics.design)
  • Re: Help with MS Accessibility
    ... The .NET documentation on it doesn't really ... > To help with the basics of the Accessibility support in the .NET ... > spend some time reading the Active Accessibility documentation on MSDN. ...
    (microsoft.public.dotnet.languages.csharp)