>
> 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 } +]
>

[+ scalar ( { %fdat, day => 1, month => 10, year => 2000 }) +]

works also

> 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.

Aah, now I understand what you mean by duplicate entries. Yes you are right,
they are not splitted correctly and it only works correct, as longs as the
page that gets the arguments is a Embperl page. I put this on the TODO list.
You could write some code like this

[+ [ map { map { $key => $_ } split (/\t/, $fdat{$key = $_}) } keys
%fdat } ] +]

I don't have tested this great pieces of Perl code ;-), but it should do
it's job. (we use an arrayref instead of a hashref here)

>
> (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.)

The "tab hack" is very old and mainly there for compatibility, I think about
it how to do it better...

Gerald



-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to