in reply to Re: Use hashes instead of grep
in thread How to grep exact string
Not really. Even if the code uses both arrays then there is nothing preventing building a temporary hash through
..and then discarding the hash after the check for new machines. More likely is that he is only interested in the second list, or just new machines, and they could be in an array just like before.my %hash = map { $_ => 1 } @first_list;
A Monk aims to give answers to those who have none, and to learn from those who know more.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Use hashes instead of grep
by ColonelPanic (Friar) on Nov 15, 2012 at 11:15 UTC | |
by Anonymous Monk on Nov 15, 2012 at 14:18 UTC | |
by space_monk (Chaplain) on Nov 15, 2012 at 14:01 UTC |
In Section
Seekers of Perl Wisdom