File::File::Rename::Options(3pm)

File::File::Rename::Options3pm

Option processing for file::rename

Usage

    use File::Rename::Options;
    my $options = File::Rename::Options::GetOptions()
        or pod2usage;
    use File::Rename::Options qw(no_require_order);

Overview

Configuation

The parameters to "use File::Rename::Options" are configurations settings for Getopt::Long

The default configuration is posix_default and no_ignore_case; other settings are added to this list.

Functions

"GetOptions()"

Call "Getopt::Long::GetOptions()" with options for rename script, returning a HASH of options.

"bad_encoding($options)"

Test if encoding does not look like an encoding

Options

See rename script for options (in @ARGV).

See File::Rename for structure of the options HASH

Environment

No environment variables are used.

Diagnostics

Returns "undef" when there is an error in the options.

Author

Robin Barker <[email protected]>

From rename 2.02-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.