File::DirList(3pm) | User Contributed Perl Documentation | File::DirList(3pm) |
File::DirList - provide a sorted list of directory content
Version 0.04
use File::DirList; # my @list = File::DirList::list('.', 'dn', 1, 0);
This module is used to get a list of directory content. It is a simple wrapper around DirHandle and sort()
The module has two methods:
This is a string containing the following symbols, with uppercase representing the reverse sort:
$sortMode is interpreted from left to right. If the first comparison produces an equal result next one is used. For example, string "'din'" produces a list with all the directories preceding files, directories and files are sorted by name case insensitively, with lowercase letters preceding upper case.
Returned value is an array reference, sorted as described by $sortMode.
Array elements are array references representing an item.
The individual item's array contains 17 elements:
[15] and [16] are set to non-link if $examineLinks is "false".
Parameters are
Return value is similar to "list()"
None by default
DirHandle, stat, lstat, sort
Daniel Podolsky, <tpaba@cpan.org>
Copyright (C) 2006 by Daniel Podolsky, <tpaba@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.
2022-10-13 | perl v5.36.0 |