Maplat::Array::Unique - make all Array elements unique
use Maplat::Array::Unique; my @myarray = qw[one two one three]; unique(\@myarray); # @myarray now equals qw[one three two]
Maplat::Array::Unique is a simple replacement function to make all array elements unique.
Warnings: This re-sorts array elements (changes order and therefore element index of all elements);
This module is designed for convenience and readable code rather than for speed.
This module currently exports its only function by default:
unique() takes one array reference and replaces the array with one that only holds all unique values.
Rene Schickbauer, <email@example.com>
Copyright (C) 2017 by Rene Schickbauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.24.0 or, at your option, any later version of Perl 5 you may have available.