Couple of points from me: You can replace the use of
`find` with the
File::Find module which uses perl, although this would require restructuring your code, because of the callback style interface of that module.
The second point is that your use of split could be optimised. This is one situation where a regex with capturing parenthesis could be used instead (see perlop for more about the return value of m// in list context).
my ($reqd) = m{users/(.+?)/};
--
integral, resident of freenode's #perl