in reply to Subroutine & For loop

To be able to help you, you need to show us first what you tried.

Please put it within code tags...

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)