Thread Vars, param, ref
(23 answers)
Opened by nepos at 2007-02-20 13:28
Hallo
In dem Fall würdest du dann jeden Wert erstmal mit ref() prüfen? CGI::Vars() ist doch ohnehin eine Krücke aus dem letzten Jahrhundert. Vorlesen? When using this, the thing you must watch out for are multivalued CGI parameters. Because a hash cannot distinguish between scalar and list context, multivalued parameters will be returned as a packed string, separated by the "\0" (null) character. You must split this packed string in order to get at the individual values. This is the convention introduced long ago by Steve Brenner in his cgi-lib.pl module for Perl version 4. If you wish to use Vars() as a function, import the :cgi-lib set of function calls (also see the section on CGI-LIB compatibility) Gruss Kristian |