Specific by line number? specific by text in the line? specific as line-by-line? Please be more specific. :)
To read line $x of FILE into $line: <FILE> foreach 2..$x; $line = <FILE> <FILE> reads in the next line of the file. Hope this helps, /\/\ark -----Original Message----- From: Glenn Cannon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 12:47 PM To: [EMAIL PROTECTED] Subject: Reading lines from a file How do I read a specific line from a text file? I know how to open and close the file, and how to read the entire file, is there a way (maybe by setting $.) to read a specific line of the file? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]