rajkrishna89 has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks , is there any way to split a word in a .txt file based on a condition ..for eg consider a line
perl monks wisdom monks perl wisdom
I want the above lines to be splitted as follows:-
perl monks wisdom monks perl wisdom
I want the words prefix or suffix of the "monks" to be printed in a new line..i tried something but i cant get the idea to implement it..Thanks Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Split words
by jwkrahn (Abbot) on Jul 11, 2012 at 14:54 UTC | |
|
Re: Split words
by ww (Archbishop) on Jul 11, 2012 at 15:05 UTC | |
|
Re: Split words
by aitap (Curate) on Jul 11, 2012 at 14:53 UTC | |
|
Re: Split words
by Utilitarian (Vicar) on Jul 11, 2012 at 14:57 UTC | |
|
Re: Split words
by cheekuperl (Monk) on Jul 11, 2012 at 14:45 UTC | |
by ww (Archbishop) on Jul 11, 2012 at 15:18 UTC | |
by cheekuperl (Monk) on Jul 11, 2012 at 15:41 UTC |