in reply to perl chmod tells me file does not exist (but it does)
Perhaps because you have given the args to chmod in the wrong order?