|The stupid question is the question not asked|
Re^3: Comparing a value to a list of numbersby syphilis (Bishop)
|on Jan 30, 2021 at 00:44 UTC||Need Help??|
Please give an example (in perl code) of hose List::Util can be used to solve the OP's problem
List::Util::uniq() utilizes the hash lookup referred to elsewhere in this thread.
Some efficiency is lost in this script because uniq() has to generate the hash every time it is called.
It would be more efficient if the perl code itself created the hash (just once), and then re-used that hash for each number that needs to be checked.
Perhaps anonymous had some other List::Util routine in mind.