sharan has asked for the wisdom of the Perl Monks concerning the following question:
I need to get the output as:process I know the simple case is finding all the sub; bdjh pond(end)cannot; gsjad pond: process(start); begin;
I tried with:end process
But with code i get the whole line instead of just end and start. Thanking youwhile(<PAGE>) { if (/pond/) { print "$_"; } } close(PAGE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: read a word from a line
by ELISHEVA (Prior) on Feb 25, 2009 at 14:13 UTC | |
by AnomalousMonk (Archbishop) on Feb 25, 2009 at 15:31 UTC | |
by sharan (Acolyte) on Feb 25, 2009 at 17:11 UTC | |
by ELISHEVA (Prior) on Feb 25, 2009 at 18:24 UTC | |
|
Re: read a word from a line
by atemon (Chaplain) on Feb 25, 2009 at 14:17 UTC | |
|
Re: read a word from a line
by Narveson (Chaplain) on Feb 25, 2009 at 14:16 UTC | |
by sharan (Acolyte) on Feb 25, 2009 at 17:08 UTC | |
by Narveson (Chaplain) on Feb 25, 2009 at 18:40 UTC |