Perl: the Markov chain saw | |
PerlMonks |
Re^2: hash of unique wordsby Ninke (Novice) |
on Apr 22, 2013 at 17:50 UTC ( [id://1029940]=note: print w/replies, xml ) | Need Help?? |
Choroba, thanx very much, that does exactly what I want. A nice trick with {$_} for @words, that reduced the number of lines twice:) Though I don't understand the magic to the end, especially when a hash of hashes ($uniform{ $words_en$word_index }{$_}) turnes into a one-dimentional hash: $uniform{$word}. I just need to use it in practice and then I'll get it:)
In Section
Seekers of Perl Wisdom
|
|