in reply to populate hash tab delimited
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: populate hash tab delimited
by Anonymous Monk on Mar 07, 2006 at 22:04 UTC |