my @data = <> would be one way. Could always read one line at a time with while (<>) {...}. This is stuff that you or your instructor should have already covered in your course, isn't it?
Update: if not, take a look at perlintro, perlfaq, perlsyn, perldata, and so on.
--MidLifeXis
In reply to Re^3: New student, can we write this program in perl...
by MidLifeXis
in thread New student, can we write this program in perl...
by rahulraina7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |