Perl Monk, Perl Meditation | |
PerlMonks |
Re: Data::Dumper and evalby chromatic (Archbishop) |
on Nov 28, 2000 at 05:40 UTC ( [id://43588]=note: print w/replies, xml ) | Need Help?? |
If there's a possibility that your file is empty, you need an extra step:
That way, %somehash is empty and you'll avoid those errors if there's nothing in the file. Update: jcwren pointed out that I had an extra line that should have been edited out. I dare you to find it now.
In Section
Seekers of Perl Wisdom
|
|