in reply to How to use chmod u +x in perl
Have you looked at what the documentation about chmod has to say? The examples show the various allowed usages of chmod. Note that chmod takes a string. Perl sees u+x as the numeric addition of the strings "u" and "x", and thankfully you are using strict so it prohibits using barewords as strings.
|
|---|