> - I've created several fairly small dictionary files - each line in them
> looks more or less like that:
> 'aufgedreht: lit up, activated, attracted to, interested in'
if this is how the file looks, just use a simple hash:
$dict{'aufgedreht'} = 'lit up, activated, attracted to, interested in';
for reading the file:
while(<FH>)
{
chomp;
my ($word, $rest) = split /:/;
$dict{$word} = $rest;
}
If you want a hash of arrays, do something like this:
while(<FH>)
{
chomp;
my ($word, $rest) = split /:/;
$dict{$word} = [ split /,/, $rest ];
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]