Err.. have you tried doing print <chunk>; as you said? Just that should work, providing you with the first line and allowing you to get the rest later. I often use this to read things like headers, before while'ing away to read the rest.
Update: Listen to Broquaint's advice below, I forgot print worked in a list context for a moment. Sorry, mental slip.
In reply to Re: To print one line from a file? Non-loop?
by Molt
in thread To print one line from a file? Non-loop?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |