in reply to FInd and permission change

I'll bet that you aren't really opening the file 'users'. Try this:
open(FILE, 'users') or die "reason: $!";
Always check for the success of opening a file, Perl won't do it for you. Also, if you are planning on writing to that file handle, you should open like so:
open(FILE, '>users') or die "reason: $!";
> means open for writing, this will clob the file, so use >> if you only wish to append.

Jeff

R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--