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: removing last chrs (with different browsers giving different last chrs )
    ... If someone is either not willing or not capable of understanding _basic_ regular expressions, he/she shouldn't be a programmer in the first place. ... will have to find the documentation for that class and decipher the constants. ... I don't have one function which tries to validate everything. ... The error message is in the form template and displayed automatically. ...
    (comp.lang.php)
  • Re: removing last chrs (with different browsers giving different last chrs )
    ... Documentation is just as important if you are going to be the only one to look at it. ... the best tool I've found for PHP programming is Crimson editor on Windows or vim on Linux. ... I don't have one function which tries to validate everything. ... This ensures the value is an integer and puts out a meaningful error message if it isn't. ...
    (comp.lang.php)