Hi,
I have to set some values based on some conditions to hash object.
How can i set?
I am using the following code.
[code=perl]
if($attrs{"Coll Type"} eq "A")
{
%A_hash = ($attrs{"State" },$attrs{"Team" });
}
[/code]
I am parsing one xml file and based on the CollType I am assigning the state and team values to A hash.
But finally i get the last key value only.and its size is always 1.
Hash is not growing as needed.
How can i achieve this?
Thanks in advance.
Regards,
Bhavani
I have to set some values based on some conditions to hash object.
How can i set?
I am using the following code.
[code=perl]
if($attrs{"Coll Type"} eq "A")
{
%A_hash = ($attrs{"State" },$attrs{"Team" });
}
[/code]
I am parsing one xml file and based on the CollType I am assigning the state and team values to A hash.
But finally i get the last key value only.and its size is always 1.
Hash is not growing as needed.
How can i achieve this?
Thanks in advance.
Regards,
Bhavani
Comment