[Thread Prev][Thread Next]   >Date Index >Thread Index

Re: CGI Vacation Script

Lupe Christoph - Thu Sep 20 18:34:41 2007

On Thursday, 2007-09-20 at 18:30:29 +0200, Lupe Christoph wrote:

> In *meiner* CGI-Doku liefert die 'Vars'-Methode einen Hashref, keinen
> Hash:

Vergiss es. Ich hab das hier ueberlesen:

Many people want to fetch the entire parameter list as a hash in which
the keys are the names of the CGI parameters, and the values are the
parameters' values.  The Vars() method does this. Called in a scalar
context, it returns the parameter list as a tied hash reference.
Changing a key changes the value of the parameter in the underlying CGI
parameter list.  Called in a list context, it returns the parameter list
as an ordinary hash.  This allows you to read the contents of the
parameter list, but not to change it.

Lupe Christoph
| The whole aim of practical politics is to keep the populace alarmed    |
| (and hence clamorous to be led to safety) by menacing it with an       |
| endless series of hobgoblins, all of them imaginary.                   |
| H. L. Mencken, "In Defense of Women", 1918                             |