First off, thanks to all who offered help with my trying to count the 
number of items passed in a CGI script. I finally figured out I had my 
logic wrong and it doesn't matter how many element's I'm passing, but...

My problem now is that I can't get items deleted from a hash table.

My code is as follows:

     for ( $i=0;($i < $FORM{'count'}); $i++)
     {
          my $place="d".$i;
          if ( $FORM{$place} eq 'off' )
                {
                 # We've matched a check box and a hash so delete it
                 delete ( $location{$place} );
                }
     }

It's fairly straightforward here. If the value of the CGI passed is off, 
then I match it against the hash table. The keys in the hash table are d0, 
d1, d2, etc... which correspond to the CGI  names passed.

So if (d0 eq 'off') for example I want to delete the hash table value with 
the key of d0.

However it isn't doing it and I am pulling my hair out trying to figure out 
why.

Any help would be really appreciated here!

TIA!



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

Reply via email to