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} = {...}
Comment on
Re: accessing hash
Select
or
Download
Code
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
[reply]
Re^3: accessing hash
by
jethro
(Monsignor)
on May 28, 2010 at 19:42 UTC
"$query{$putword} = {...}"
is correct. Maybe you forgot to remove the final ')'. Check opening and closing parens.
[reply]
[d/l]
In Section
Seekers of Perl Wisdom