File: rename.pl

package info (click to toggle)
rename 2.02-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 312 kB
  • sloc: perl: 439; sh: 12; makefile: 11
file content (7 lines) | stat: -rw-r--r-- 150 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
use strict;
use File::Rename ();

@ARGV = map glob, @ARGV if $^O =~ /Win/;

File::Rename::rename \@ARGV, { _code => sub { $_ = lc }, verbose => 1 };