Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I just want one line, then the next line later as I need it for whatever I am printing. Is there another way of doing this other than reading the file into an array and then using array elements as needed? Does it exist, what I am looking for?while (<CHUNK>) { print $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: To print one line from a file? Non-loop?
by broquaint (Abbot) on May 24, 2002 at 12:48 UTC | |
|
Re: To print one line from a file? Non-loop?
by Molt (Chaplain) on May 24, 2002 at 12:40 UTC | |
|
Re: To print one line from a file? Non-loop?
by Nakko (Initiate) on May 24, 2002 at 12:51 UTC |