Re: Read a single line in a file.

2005-08-01 Thread Tom Allison
Hi, Use the script below: open(FILE, $file_name); my ($first, $second, $third, $fourth) = split /,/, ; close FILE; print $third; Teddy my ($word) = (split /,/, )[2]; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Read a single line in a file.

2005-07-30 Thread Octavian Rasnita
From: "Jim" <[EMAIL PROTECTED]> > > > Original Message- > > From: Umesh T G [mailto:[EMAIL PROTECTED] > > > > Sent: Friday, July 29, 2005 3:47 PM > > To: beginners@perl.org > > Subject: Read a single line in a file. > > > > > > Hello List, > > > > I have a file with multiple lines. I

RE: Read a single line in a file.

2005-07-30 Thread Jim
> Original Message- > From: Umesh T G [mailto:[EMAIL PROTECTED] > > Sent: Friday, July 29, 2005 3:47 PM > To: beginners@perl.org > Subject: Read a single line in a file. > > > Hello List, > > I have a file with multiple lines. I want to read only the first line. > > and a particular

RE: Read a single line in a file.

2005-07-29 Thread arjun.mallik
Original Message- From: Umesh T G [mailto:[EMAIL PROTECTED] Sent: Friday, July 29, 2005 3:47 PM To: beginners@perl.org Subject: Read a single line in a file. Hello List, I have a file with multiple lines. I want to read only the first line. and a particular word in that line. For eg: F