in reply to Recreating hash from Data::Dumper text
If efficiency matters, use Storable as suggested by others.