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.