Bhavani2007
Programmer
Hi,
I have to set some values based on some conditions to hash object at runtime
How can i set?
I am using the following code.
if($attrs{"CollType"} eq "A")
{
%A_hash = ($attrs{"State"},$attrs{"Team"});
}
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 at runtime
How can i set?
I am using the following code.
if($attrs{"CollType"} eq "A")
{
%A_hash = ($attrs{"State"},$attrs{"Team"});
}
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