in reply to move command
As Corion wrote, perl has the rename builtin, with the caveat that it doesn't work across file system boundaries.
A possible solution is to use the list form of system, which doesn't pass the arguments to a shell, thus not having a problem with shell meta characters:
system('mv', $filename, 'new&filename_renamed.txt') == 0 or die "Can't move files: $?";
|
|---|