in reply to hash problem

Hi,

The code you written have some typo errors. You have assigned splitted values into $ref and $str, but you are storing the $str to an hash %names with key as $refnum which in turn is undefined. That is why die part is getting executed.

Regards,
Murugesan Kandasamy.