Re: Reading the next line in a file from the current position

2007-11-12 Thread Praveena Vittal
Thanks for all your comments. Jeff Pang wrote, On 11/12/2007 12:26 PM: On Nov 12, 2007 2:48 PM, Praveena Vittal <[EMAIL PROTECTED]> wrote: Hi, Thanks for your comments.. I like to know what does the below represents.. $' from `perldoc perlvar': $' The string followin

Re: Reading the next line in a file from the current position

2007-11-12 Thread Gunnar Hjalmarsson
Praveena Vittal wrote: I like to know what does the below represents.. $' Then why don't you look it up in the docs instead of asking hundreds of people to read the docs for you? -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTE

Re: Reading the next line in a file from the current position

2007-11-11 Thread Jeff Pang
On Nov 12, 2007 2:48 PM, Praveena Vittal <[EMAIL PROTECTED]> wrote: > Hi, > Thanks for your comments.. > > I like to know what does the below represents.. > > $' > from `perldoc perlvar': $' The string following whatever was matched by the last success- ful pattern m

Re: Reading the next line in a file from the current position

2007-11-11 Thread Praveena Vittal
Hi, Thanks for your comments.. I like to know what does the below represents.. $' Regards, Praveena Jeff Pang wrote, On 11/07/2007 06:48 PM: --- 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 . H

Re: Reading the next line in a file from the current position

2007-11-07 Thread Jeff Pang
--- 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, in scalar context will read next line.ie, open FD,"file" or die $!; for (1..3); # now you're in No.3 line,again we say: scalar ; # no you

Reading the next line in a file from the current position

2007-11-07 Thread Praveena Vittal
Hi all, I like to know how can we read a line next to the current position in a file . Regards, Praveena -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/