NAME
File::Rename - Perl extension for renaming multiple files
SYNOPSIS
use File::Rename qw(rename); # hide CORE::rename
rename @ARGV, sub { s/\.pl\z/.pm/ }, 1;
use File::Rename;
File::Rename::rename @ARGV, '$_ = lc';
DESCRIPTION
File::Rename::rename FILES, CODE, [VERBOSE]
OPTIONS
- FILES
-
(Reference to) list of files to be renamed
- CODE
-
Subroutine to change file names, or code as string
- VERBOSE
-
Flag for printing names of files successfully renamed
EXPORT
None by default.
ENVIRONMENT
No environment variables are used.
SEE ALSO
mv(1), perl(1), rename (1)
AUTHOR
Robin Barker <RMBarker@cpan.org>
DIAGNOSTICS
Errors from the code argument are not trapped.
COPYRIGHT AND LICENSE
Copyright (C) 2004 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.