Perl: the Markov chain saw | |
PerlMonks |
How can I assign the elements in an array to only the key values in a hash?by blackjudas (Pilgrim) |
on Mar 30, 2001 at 22:10 UTC ( [id://68448]=perlquestion: print w/replies, xml ) | Need Help?? |
blackjudas has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (hashes)
I have an array that keeps returning matches in a string, each match must be inserted into a hash as an empty key, this is what I have and it's obviuosly flawed. keys(%hash) = @array; Or should I go the route:
Any takers? Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|