The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

SYNOPSIS

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

TODO

Fix for perls built using Microsoft Compilers.

LICENSE

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

AUTHOR

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