in reply to Inconsistent ls -l results??
Some versions of Unix require "ls -lg" to get the group owner of files listed. The solution? Use Perl's stat as already suggested.