in reply to accessing hash

By assigning to %query, you delete all its previous content. You should not use %query=($putword=> ...), but rather something like $query{$putword} = {...}

Replies are listed 'Best First'.
Re^2: accessing hash
by historysav (Initiate) on May 28, 2010 at 16:51 UTC
    Hey chroba.. When I write like "$query{$putword} = {...}", I got sytax error mesage.. Can you write exact sentencez? thanks
      "$query{$putword} = {...}" is correct. Maybe you forgot to remove the final ')'. Check opening and closing parens.