>
> I have some embperl scripts that need to pass a lot of values
> between them, and
> until I discovered this trick, I was always manually typeing the whole
> string "value=[+ $fdat{someid} +]&foo=[+ bar +]" etc.  However,
> how about if
> you want to change just value, but not change the value in the
> %fdat hash? That
> means you have to make extra variables to back up original
> values, etc, etc,
> and I'm not saving all that much code.
>
> Would it be an idea to add to your code that does the %fdat hash
> to a=1&b=2&c=3
> conversion to do this?
>

You can do this with any array ref. So

  <a href="[+ [ a => 1, b => 2 ]  +]">

or

  <a href="[+ [ %temp ]  +]">

will work as well. If you want to change only a few members in %fdat (or any
other hash), you can write

  <a href="[+ [%{{%fdat, lang => 'de', page => 2}}]  +]">

I plan to include the same possibilty also for hashrefs, then the same could
be written as

  <a href="[+ {%fdat, lang => 'de', page => 2}  +]">

Is that what you want?

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