in reply to Data::Dumper and eval

To add an eval to catch the error you are getting would look like:

open DATA, "<$datafile" or die "$!"; { local $/; eval { %somehash = %{ eval <DATA> }; }; }
but I'd do it differently. I'd check for the empty file separately so that a malformed file still generates an error that you can diagnose.

        - tye (but my friends call me "Tye")