Faut nettoyer les retour à la ligne dans ton programme. http://perl.developpez.com/faq/perl/?page=section1#RetourChariotFichier