I need perl code to change the permission of files that I ftp to a vps server. I'm moving from a shared server which didn't seem to care about file ownership or file permissions to a vps server which does. I transfer too many files too ofter to make changes manually so I would like to have a set of instructions to at least change the permissions that I can use when needed.
I've tried the below code without any success:
The files are printed but permissions aren't changed.
Can anyone help?
Thanks
Charlie