use System::Sub::Env "mv"; mv("oldname.txt" => "newname.txt");