Most likely, your Perl is too old.
From perldelta of 5.8.8:
See also Re^2: Why doesn't chmod work on this lexical filehandle?
In reply to Re^3: Why doesn't chmod work on this lexical filehandle?
by Anonyrnous Monk
in thread Why doesn't chmod work on this lexical filehandle?
by williff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |