I have understand why I have duplicatas : a NIS server is running.
So, now I know that the function getgrent looks both /etc/passwd and the NIS database.
It doesn't appear in the french man page of getgrent (Mandrake).
PS : I've got to learn english before learning Perl !