in reply to Runing Command

I can't answer why, but if you are counting users by the number of directories off the path supplied, the there is no need to go to all that trouble.

$users = grep{ -d $_ } glob('/home/virtual/xms.ms/home/*');

Would probably be heaps quicker.


Examine what is said, not who speaks.