Package : perl-File-IsSorted > RPM : perl-File-IsSorted-0.2.0-1.mga9.noarch.rpm
Basic items
InstallName | perl-File-IsSorted |
Version | 0.2.0 |
Release | 1.mga9 |
URL | https://metacpan.org/release/File-IsSorted |
Group | Development/Perl |
Summary | Test files for being lexicographical sorted |
Size | 79KB |
Arch | noarch |
License | GPLv1+ or Artistic |
Description
This checks if the lines of files or filehandles are monotonically and
lexicographically increasing, (= are already sorted). It may consume less
RAM and be faster than the naive way of doing 'cmp myfile.txt <(LC_ALL=C
sort myfile.txt)' and it runs at O(n) instead of O(n*log(n)) time and keeps
O(1) lines instead of O(n).
$checker->is_filehandle_sorted({fh => $input_fh, id => "my-file.txt"});
Checks if $input_fh is sorted - throws an exception if it is not sorted
and returns true if it is.
$checker->is_file_sorted({path => "/path/to/file.txt", id =>
"my-file.txt"});
Checks if the file at path is sorted - throws an exception if it is not
sorted and returns true if it is.
lexicographically increasing, (= are already sorted). It may consume less
RAM and be faster than the naive way of doing 'cmp myfile.txt <(LC_ALL=C
sort myfile.txt)' and it runs at O(n) instead of O(n*log(n)) time and keeps
O(1) lines instead of O(n).
$checker->is_filehandle_sorted({fh => $input_fh, id => "my-file.txt"});
Checks if $input_fh is sorted - throws an exception if it is not sorted
and returns true if it is.
$checker->is_file_sorted({path => "/path/to/file.txt", id =>
"my-file.txt"});
Checks if the file at path is sorted - throws an exception if it is not
sorted and returns true if it is.
Media information
Distribution release | Mageia 9 |
Media name | core-release |
Media arch | x86_64 |
Advanced items
Source RPM | perl-File-IsSorted-0.2.0-1.mga9.src.rpm |
Build time | 2022-05-15 10:00:36 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |