File::Rename(3pm) | User Contributed Perl Documentation | File::Rename(3pm) |
File::Rename - Perl extension for renaming multiple files
use File::Rename qw(rename); # hide CORE::rename rename \@ARGV, sub { s/\.pl\z/.pm/ }, 1; use File::Rename; File::Rename::rename \@ARGV, '$_ = lc'; use File::Rename qw(:config no_require_order);
Parameters to "use File::Rename" consists of functions to be imported and configuration options.
The only exported function is "rename()". The configuation options are preceded by :config, and are passed to File::Rename::Options.
Either CODE or VERBOSE can be a HASH of options.
If CODE is a HASH, VERBOSE is ignored and CODE is supplied by the _code key.
Other options are
rename
No environment variables are used.
Robin Barker <RMBarker@cpan.org>
Based on code from Larry Wall.
Options -e, -f, -n suggested by more recent code written by Aristotle Pagaltzis.
Errors from the code argument are not trapped.
Copyright (C) 2004, 2005, 2006, 2011, 2018, 2021, 2022, 2023 by Robin Barker
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.
2023-01-23 | perl v5.36.0 |