You declare both $key and $ value before the while loop. Inside the whlie loop you declare them again, this makes the $key and $value local to the while loop. When the loop finishes those variables disappear. The $key and $ value you are using in the print statement have never been given a value.
Your code should work if you drop the 'my' from the loop.
In reply to Re: populate hash tab delimited
by oknow
in thread populate hash tab delimited
by Gavin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |