Re: Perl split() question (OT)...

2004-07-26 Thread Mathias Samuelson
Steve Bertrand wrote: Perl hackers -- Figured someone would have a reasonably quick, easy answer for this: I am trying to read through a file, line-by-line, and I want to extract the text in between the [ and ] characters. I would normally half the line by split() - ing the line first by [

Perl split() question (OT)...

2004-07-23 Thread Steve Bertrand
Perl hackers -- Figured someone would have a reasonably quick, easy answer for this: I am trying to read through a file, line-by-line, and I want to extract the text in between the [ and ] characters. I would normally half the line by split() - ing the line first by [ as follows: if

Re: Perl split() question (OT)...

2004-07-23 Thread Fernando Gleiser
On Fri, 23 Jul 2004, Steve Bertrand wrote: Perl hackers -- Figured someone would have a reasonably quick, easy answer for this: I am trying to read through a file, line-by-line, and I want to extract the text in between the [ and ] characters. This is a job for..capturing parens!!! Try

RE: Perl split() question (OT)...

2004-07-23 Thread Carmichael, Lee
To: [EMAIL PROTECTED] Subject: Perl split() question (OT)... Perl hackers -- Figured someone would have a reasonably quick, easy answer for this: I am trying to read through a file, line-by-line, and I want to extract the text in between the [ and ] characters. I would normally half the line

Re: Perl split() question (OT)...

2004-07-23 Thread Steve Bertrand
On Fri, 23 Jul 2004, Steve Bertrand wrote: Perl hackers -- Figured someone would have a reasonably quick, easy answer for this: I am trying to read through a file, line-by-line, and I want to extract the text in between the [ and ] characters. This is a job for..capturing parens!!!