I spent all last night learning how to code perl, and just about have eveything the way I want it.
I want to run the command to chmod a file, however, if the file does not exist, or there is an error (meaning it didn't get chmod), then it should set the $temp var to be 1. This will allow me to print out the correct message.
I don't want the program to die if it cannot chmod, but instead change the variable $temp to a different value.
Any other suggestions for a better programming structure is welcome 🙂
I want to run the command to chmod a file, however, if the file does not exist, or there is an error (meaning it didn't get chmod), then it should set the $temp var to be 1. This will allow me to print out the correct message.
I don't want the program to die if it cannot chmod, but instead change the variable $temp to a different value.
Any other suggestions for a better programming structure is welcome 🙂