| I have a great big file that contains an unsorted, multilingual lexicon, that I am sorting, based on language. I've written code to do this a couple times, and am now looking for a more elegant solution to the problem. My question is, how can I (if there is, indeed, a way) print certain elements from the hash to different files, without explicitly specifying the file to which I want to print.
My hash looks something like this $lexica{$language}{$word}{$counter}{$transcription} What I would like to do is print everything correctly, according to language, with a single for loop, which, in my head, looks something like this:
|
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |