Skip Menu |

This queue is for tickets about the File-Rename CPAN distribution.

Report information
The Basics
Id: 132777
Status: resolved
Priority: 0/
Queue: File-Rename

People
Owner: RMBarker [...] cpan.org
Requestors: dom [...] earth.li
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.10
Fixed in:
  • 1.11
  • 1.12



Subject: Doc update: exampls for multiple expressions and moving between directories
As suggested in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=207017: diff --git a/rename.PL b/rename.PL index 30694ed..53bdca7 100644 --- a/rename.PL +++ b/rename.PL @@ -106,6 +106,11 @@ To translate uppercase names to lower, you'd use rename 'y/A-Z/a-z/' * +You can also use rename to move files between directories, possibly at +the same time as making other changes: + + rename 'y/A-Z/a-z/;s/^/my_new_dir\//' * + =head1 OPTIONS =over 8
On Sun Jun 07 12:09:14 2020, dom@earth.li wrote: Show quoted text
> As suggested in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=207017: > > diff --git a/rename.PL b/rename.PL > index 30694ed..53bdca7 100644 > --- a/rename.PL > +++ b/rename.PL > @@ -106,6 +106,11 @@ To translate uppercase names to lower, you'd use > > rename 'y/A-Z/a-z/' * > > +You can also use rename to move files between directories, possibly at > +the same time as making other changes: > + > + rename 'y/A-Z/a-z/;s/^/my_new_dir\//' * > + > =head1 OPTIONS > > =over 8
I have fixed this, added another example, and added a test script to check the examples. I changed the example to end *.* - as written it tries to move my_new_dir to my_new_dir/my_new_dir - and fails!