List::Uniqnum - a rendition of List::Util::uniqnum minus the bugs.


  Heavily plagiarize the uniqnum() function from List::Util, but make
  some changes to (hopefully) remove the bugs and make it portable.

   use List::Uniqnum qw(uniqnum);
   my @numbers = (1, 1.0, sqrt 2, 1.5, 2, 3);

   # Populate @unique with all unique values in @numbers
   # ie set @unique to (1, sqrt 2, 1.5, 2, 3)
   my @unique = uniqnum(@numbers); # list context

   # Set $count to the number of unique valuesin @numbers
   # ie set $count to 5.
   my $count  = uniqnum(@numbers); # scalar context


   Fix for perls built using Microsoft Compilers.


   This program is free software; you may redistribute it and/or
   modify it under the same terms as Perl itself.
   Copyright 2020 Sisyphus


   Sisyphus <sisyphus at(@) cpan dot (.) org>