Skip Menu |

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

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

People
Owner: RMBarker [...] cpan.org
Requestors: saurabh [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in:
  • 0.01
  • 0.02
  • 0.03
  • 0.04
  • 0.05
  • 0.06
  • 0.10
Fixed in: 0.20



Subject: Bug using -e
Date: Sat, 21 Jul 2012 19:16:59 +0000
To: <bug-file-rename [...] rt.cpan.org>
From: Saurabh T <saurabh [...] hotmail.com>
This is perl 5.10.1 on cygwin. Show quoted text
> touch 1 > rename -e 's/1/2/' -e 's/2/3/' 1
syntax error at (user-supplied code) line 2, near "s/1/2/ s/2/3/" The bug is at Rename.pm:31. To fix, change join "\n" @expression to join ";\n" @expression
On Sat Jul 21 15:17:07 2012, chengiz wrote: Show quoted text
> > This is perl 5.10.1 on cygwin. >
> > touch 1 > > rename -e 's/1/2/' -e 's/2/3/' 1
> syntax error at (user-supplied code) line 2, near "s/1/2/
Thanks, put I do not think this is a bug. The documentation says -e is like C<perl -e> and perl shows the same behaviour: $ perl -e 's/1/2/' -e 's/2/3/' syntax error at -e line 2, near "s/2/3/" I will add another option (-E) that does what you want.