Name : perl-Tie-Array-Unique
| |
Version : 0.01
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 6.70
| Date : 2024-08-05 18:30:39
|
Group : Development/Libraries/Perl
| Source RPM : perl-Tie-Array-Unique-0.01-6.70.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : Keep array\'s contents unique
|
Description :
This is a very simple module. Use it as shown above, and your array will never have a duplicate element in it.
The earliest (i.e. lowest-indexed) element has precedence, as shown in this code sample:
tie my(AATTx), \'Tie::Array::Unique\'; AATTx = (1, 2, 3, 4, 2, 5); # (1, 2, 3, 4, 5) $x[1] = 5; # (1, 5, 3, 4) $x[2] = 1; # (1, 5, 4)
That last line causes $x[2] to be 1, but then the array is collapsed, which results in $x[2] getting removed.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/openSUSE_Tumbleweed/noarch |