You're calling chmod on a closed file handle. This doesn't work (it doesn't work with non-lexical file handles either). Put the close after the chmod.
In reply to Re: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |