-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 11:37 AM -0400 4/18/01, Kee Hinckley wrote:
>1. By duplicate entries, I mean will that expand a="foo\tbar" (which
>is the result of ?a=foo&a=bar) appropriately?
>2. I can't get that to work at all. It results in "?2000" when I do it.
After some thought I realized that Perl is interpreting the {}'s as a
block. This solves problem #2.
[+ my $foo = { %fdat, day => 1, month => 10, year => 2000 } +]
However as I suspected, arguments that came into %fdat via duplicate
entries do not get expanded correctly. The end up going out with a
tab in them. So long as the page that then processes them does in
fact use Embperl to process the arguments, and thus expects multiple
arguments to be tab-separated, then it will work okay, but I'd be
happier if it automatically expanded it into two arguments.
(Frankly, I'd *really* be happier if Embperl had a flag I could set
to tell it to use array references in cases like that, instead of the
tab hack. But that's a separate issue, and Embperl's just following
the CGI convention.)
- --
Kee Hinckley - Somewhere.Com, LLC
http://consulting.somewhere.com/consultants.html#kee
I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBOt3OVCZsPfdw+r2CEQLtSACfRKpIs9WYmp1evcxluR2N7cVCUQUAn2Fi
gXAzOD0nbozSGdlX3bwMWWTP
=Ienq
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]