P is for Practical | |
PerlMonks |
Re: How to Parse a Text into HoAby japhy (Canon) |
on Nov 01, 2005 at 15:00 UTC ( [id://504598]=note: print w/replies, xml ) | Need Help?? |
The problem is that you're declaring $fname in every iteration of the loop, so it's always undef by the time you're using it as a hash key. Move the declaration of $fname OUTSIDE the while loop and you'll be ok.
In Section
Seekers of Perl Wisdom
|
|