in reply to not able to move files using rename command in sftp
Where does Perl enter your question?
Maybe you want to use one of the SFTP modules?