Package : perl-Uniq > RPM : perl-Uniq-0.10.0-7.mga9.src.rpm
Basic items
Name | perl-Uniq |
Version | 0.10.0 |
Release | 7.mga9 |
URL | https://metacpan.org/release/Uniq |
Group | Development/Perl |
Summary | Perl extension for managing list of values |
Size | 5KB |
Arch | noarch |
License | GPL+ or Artistic |
Description
The usage of the methods provided here is simple. You always provide
a sorted list to any of these methods and accept a sorted list of
values in return.
Suppose @lis1 and @list2 are two available lists defined as
follows:
@list_1 = qw ( first list of values );
@list_1 = qw ( second list of values );
and we run the following commands:
my @output_1 = uniq sort @list1 @list2;
my @output_2 = distinct sort @list1 @list2;
my @output_3 = dups sort @list1 @list2;
Now @output_1 has qw( first list of second values )
@output_2 has qw( first second )
and @output_3 has qw( list of values )
Thus @output_1 has all values from either input lists sans any
redundant values. @output_2 has exactly those values that appear
at most once in combined list. On the other hand @output_3 has
a list of values that appear multiple times in input.
EXPORT
Exported are methods
1) uniq [ similar to 'uniq' shell command ]
2) distinct [ similar to 'uniq -u' shell command ]
3) dups [ similar to 'uniq -d' shell command ]
a sorted list to any of these methods and accept a sorted list of
values in return.
Suppose @lis1 and @list2 are two available lists defined as
follows:
@list_1 = qw ( first list of values );
@list_1 = qw ( second list of values );
and we run the following commands:
my @output_1 = uniq sort @list1 @list2;
my @output_2 = distinct sort @list1 @list2;
my @output_3 = dups sort @list1 @list2;
Now @output_1 has qw( first list of second values )
@output_2 has qw( first second )
and @output_3 has qw( list of values )
Thus @output_1 has all values from either input lists sans any
redundant values. @output_2 has exactly those values that appear
at most once in combined list. On the other hand @output_3 has
a list of values that appear multiple times in input.
EXPORT
Exported are methods
1) uniq [ similar to 'uniq' shell command ]
2) distinct [ similar to 'uniq -u' shell command ]
3) dups [ similar to 'uniq -d' shell command ]
Media information
Distribution release | Mageia cauldron |
Media name | core-release |
Media arch | i586 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2022-03-20 15:48:10 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |