system("mv $oldfile $newfile");
my $mv_output = `mv $oldfile newfile`; #note those are backticks not single quotes!