Newsgroups: perl.beginners.cgi
From: nos...@webdragon.net (Scott R. Godin)
Date: Tue, 08 Feb 2005 21:01:52 -0500
Local: Tues, Feb 8 2005 9:01 pm
Subject: Re: perl-CGI module - post method
Ovid wrote: You raise a good point, m'friend, and one that I pondered for quite a > --- "Scott R. Godin" <nos...@webdragon.net> wrote: >>his example and in which case you want to get the params AFTER >>my %params = $cgi->Vars; >>which ensures that you also get multi-value <select>s as separate > $cgi->Vars separates multiple values with a null byte, thus increasing > Also. having to do "@foo = split "\0",$params->{foo};" is not fun and > If someone needs multiple values, they should just take advantage of > my $foo = $cgi->param('foo'); # single value > Cheers, while before sending an RFE to Lincoln Stein regarding possibly adding a pragma to indicate that you want the multi-value params as an anonymous array within the hash, thereby avoiding the potential problems of the poison null-byte. along the lines of %hash = $cgi->Vars(); From what I can see from the code it looks like the \0-packing is being We'll have to wait and see what Lincoln says, but I brainstormed a bit Very very good point though, and one I'm going to drill on until I can't -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||