Forums / Developer / How to assign new values to keys in hash?

How to assign new values to keys in hash?

Author Message

Aaron Weiss

Wednesday 24 March 2004 11:55:52 am

I'm just getting the hang of the EZ template language. I'm familiar with coding in Perl/PHP, etc. Basic question: I have created a hash like this:

{let myhash=hash('key1','val1')}

How can I change the value for key1? I've tried all kinds of variations like:
$myhash[key1]="val2"

But this doesn't work. I tried some of the array functions like merge but that didn't work either. Ideas?

thanks!
Aaron