Re: reading a hash



Hi,

I am writing a perl script to handle dictionary data. The data file has
the general format:

Haus [m, "er] :: house : home : theatre ::: das Haus Gottes :: the
house of God : schon dreissig, und er wohnt noch zu Hause :: he is 30
and still lives at home.

My hash keys are the german entries, which are unique. Each entry can
have one or more definitions in english (::) separated by (:). The
second part of the entry (:::) has one or more examples (:) with the
corresponding english translations (::). As I mentioned in the original
post, I can access the simplest dictionary with the two-field
one-entry-many-definitions format. It's the additional examples that
are giving me problem.

One possible application is a flash card program where the queue would
be a random entry. The examples can serve as hints and the definitions
can be used in some fuzzy match. I thought this would be a nice example
to housebreak me in Perl-tk.

Appologies for not having explained this clearer.

Michuco

.