<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div>Perl Mongers,</div><div>Is this a bug in rename?  I googled but did not find anything off the top.</div><div> </div><div>$ perl -e 'my @files=("x", "y"); rename(@files);'<br>Not enough arguments for rename at -e line 1, near "@files)"<br>Execution of -e aborted due to compilation errors.<br></div><div style="color: rgb(0, 0, 0); font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;"> </div><div style="color: rgb(0, 0, 0); font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;">But this works fine.</div><div style="color: rgb(0, 0, 0); font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 13.33px; font-style:
 normal; background-color: transparent;"> </div><div style="color: rgb(0, 0, 0); font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;">$ perl -e 'my @files=("x", "y"); rename($files[0], $files[1]);'</div><div style="color: rgb(0, 0, 0); font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;"> </div><div style="color: rgb(0, 0, 0); font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;">Mike</div><div style="color: rgb(0, 0, 0); font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;"> </div><div style="color: rgb(0, 0, 0); font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 13.33px;
 font-style: normal; background-color: transparent;">mrdvt92</div><div style="color: rgb(0, 0, 0); font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;"> </div><div style="color: rgb(0, 0, 0); font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;">$ perl -v</div><div style="color: rgb(0, 0, 0); font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;">This is perl, v5.10.0 built for x86_64-linux-thread-multi</div><div style="color: rgb(0, 0, 0); font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 13.33px; font-style: normal; background-color: transparent;">Copyright 1987-2007, Larry Wall<br></div></div></body></html>