in reply to perl script cannot chmod but shell script does

send us the source code surrounding this, so we would be clearer to us to try to check it.
Anyway you also could use (to test, for example) the system function to check if it works; like in
system("chmod a+rw /EntirePath/myFileName")

good luck