Array-Unique

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

      Array::Unique lets you tie an array to hmmm, itself (?) and makes
      sure the values of the array are always unique.

      Since writing this I am not sure if I really recommend its usage. I
      would say stick with the hash version and document that the variable
      is aggregating a unique list of values.

    4) Using real SET

      There are modules on CPAN that let you create and maintain SETs. I
      have not checked any of those but I guess they just as much of an
      overkill for this functionality as Unique::Array.

BUGS

     use Array::Unique;
     tie @a, 'Array::Unique';
    
     @c = @a = qw(a b c a d e f b);
     
     @c will contain the same as @a AND two undefs at the end because

lib/Array/Unique.pm  view on Meta::CPAN

and makes sure the values of the array are always unique.

Since writing this I am not sure if I really recommend its usage.
I would say stick with the hash version and document that the
variable is aggregating a unique list of values.


=item 4) Using real SET

There are modules on CPAN that let you create and maintain SETs.
I have not checked any of those but I guess they just as much of
an overkill for this functionality as Unique::Array.


=back

=head1 BUGS

 use Array::Unique;
 tie @a, 'Array::Unique';



( run in 0.597 second using v1.01-cache-2.11-cpan-702932259ff )