in reply to Nested foreach loops
http://perlmaven.com/perl-split from split perl for simple examples of how to use split.