in reply to chomp question

Hello suno,

Being novice in Perl myself, I've spent most of the time to understand hashes, lists and arrays. If you have some knowledge of some older programming language (e.g. C like me) you could easily end up in mixing things up (for example lists and arrays)...

From your question I understand that you don't get next iteration on your array. If that is the case, you really need to read a bit more on Perl. Robert's Perl tutorial is a perfect place to start. http://www.sthomas.net/roberts-perl-tutorial.htm

Happy Perl-ing !