in reply to Question 1
You have read a text file containing whitespace separated columns of numbers.
I do? Really? What a surprise. Is it a gift for me?
fellow monk, there are better ways to ask homework questions. First step in my opinion is to try and solve the problem yourself. If it works, you've accomplished something truly great. If it crashes, burns and dies in the flames then you'll accomplish even greater things by posting a well titled and formatted question to Seekers of Perl Wisdom so that others in a similar predicament as yours can learn by it.
At least, in my honest opinion, is how Perl Monks is supposed to work.
Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg