in reply to Question on loops

A must read book for beginners: Beginning Perl for Bioinformatics