Hi,

First of all thanks for the references to the Storables module to dump
a hash/array into a file so other cgi's can use this hash/array too.
It works great!

But I ran into another issue (I think it's just a syntax issue, but I'm
not sure I'm appraoching this correctly):

When my script is called, I parse in some variables. I want to build
a hash where the one variable will function as the a key of the hash
and the other variables must be referenced by again a reference.. Confused?
Me too. Example:

      %newdata = ();
      $newdata{$TAG} = $co->param('account');
      $newdata{$TAG}[0] = $co->param('initsearch');
      $newdata{$TAG}[1] = $co->param('team');
      $newdata{$TAG}[2] = $co->param('website');

should become:

      %newdata = ();
      $newdata{$TAG} = $co->param('account');
      $newdata{$TAG}[initsearch] = $co->param('initsearch');
      $newdata{$TAG}[team] = $co->param('team');
      $newdata{$TAG}[website] = $co->param('website');

But I can't seem to get this to work. Is this just a syntax problem,
or is something more fundamentally wrong?

Thanks in advance,
Philip

___________________________________________________________________
To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
all in one place - sign up today at http://www.zdnetonebox.com

Reply via email to