in reply to Re^2: New student, can we write this program in perl...
in thread New student, can we write this program in perl...
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: New student, can we write this program in perl...
by rahulraina7 (Initiate) on Oct 19, 2012 at 17:27 UTC | |
by davido (Cardinal) on Oct 19, 2012 at 18:49 UTC | |
by MidLifeXis (Monsignor) on Oct 19, 2012 at 17:35 UTC | |
by ww (Archbishop) on Oct 21, 2012 at 19:27 UTC |
In Section
Seekers of Perl Wisdom