Re: Match a pattern

2005-04-19 Thread José J. Cintrón
An example of what your session.in file and output will look like might help! lio lop wrote: Thanks for the answer , the problem is how to get the first word into some kind of variable . Suppose i call the programn with >_perl my_prog.pl session1.in > OUT.out I have to get the FIRST word of the

RE: Match a pattern

2005-04-19 Thread lio lop
Thanks for the answer , the problem is how to get the first word into some kind of variable . Suppose i call the programn with >_perl my_prog.pl session1.in > OUT.out I have to get the FIRST word of the session1.in then check if there is another one in the text, then print the text between that wo

RE: Match a pattern

2005-04-19 Thread Manav Mathur
|-Original Message- |From: lio lop [mailto:[EMAIL PROTECTED] |Sent: Tuesday, April 19, 2005 5:44 PM |To: beginners@perl.org |Subject: Match a pattern | | |I need to print the text between two words | that are in different |lines. | Assuming you want to get all

Re: Match a pattern

2005-04-19 Thread Peter Rabbitson
On Tue, Apr 19, 2005 at 03:32:22PM +0300, Offer Kaye wrote: > On 4/19/05, lio lop wrote: > > I need to print the text between two words > > that are in different > > lines. > > > If you have: This is a nasty, multilined chunk of text and you want to get everything

Re: Match a pattern

2005-04-19 Thread Offer Kaye
On 4/19/05, lio lop wrote: > I need to print the text between two words > that are in different > lines. > print "\n"; -- Offer Kaye -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]