NAME

pmsort - sort perl module names by package component

SYNOPSIS

pmsort [-hmv | --help | --manpage | --version]

pmsort [-nv] [file | package] ...

pmsort [--numerically] [--reverse] [file | package] ...

DESCRIPTION

This program is thin wrapper around "sort_packages_lexically" in FindApp::Utils::Package and "sort_packages_numerically" in FindApp::Utils::Package.

The default is to sort package names lexically, but the --numerically or -n option will sort them numerically.

Package names are read from the normal input arguments via ARGV, which are interpreted as filenames containing packages one per line unless at least one of them has a double-colon in it. If no arguments are given, then STDIN is read from.

Sorting packages is a type of field sort, where the field separator is a double-colon or the legacy single-quote equivalent. So you first sort on the first field and only if there's a tie do you go on to the second field.

Options

--help, -h, -?

Get short help.

--manpage, -m

Display this man page.

--numerically, -n

Sort module names first by the number of package elements and only second by the names themselves.

--reverse, -r

Reverse the output order.

--version, -v

Print program version information, then exit.

SEE ALSO

FindApp::Utils::Package

AUTHOR

Tom Christiansen <tchrist@perl.com>

LICENCE AND COPYRIGHT

Copyright (c) 2016, Tom Christiansen <tchrist@perl.com>. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.