--- Praveena Vittal <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I like to know how can we read a line next to the current position in
> a file .
>
Hi,
<FD> in scalar context will read next line.ie,
open FD,"file" or die $!;
<FD> for (1..3);
# now you're in No.3 line,again we say:
scalar <FD>; # no you're in the No.4 line
National Bingo Night. Play along for the chance to win $10,000 every week.
Download your gamecard now at Yahoo!7 TV.
http://au.blogs.yahoo.com/national-bingo-night/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/