Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
salve monks,
I have the text of a play which I was to put into a presentation. So I need to split it up every 15 lines or so.
I had already stated to do this in vim by recording a macro where I would insert some special text say xñx (which I can then parse upon) after I'd moved down around 15 lines.
Can this be done in perl (more automatically I guess)? Also does it complicate things to not want to introduce the parsing marker when the 15 line account occurs in the middle of a paragraph?
Sorry for not having a good grasp of the parsing lingo here, but hopefully you get what I want to do.
I have the text of a play which I was to put into a presentation. So I need to split it up every 15 lines or so.
I had already stated to do this in vim by recording a macro where I would insert some special text say xñx (which I can then parse upon) after I'd moved down around 15 lines.
Can this be done in perl (more automatically I guess)? Also does it complicate things to not want to introduce the parsing marker when the 15 line account occurs in the middle of a paragraph?
Sorry for not having a good grasp of the parsing lingo here, but hopefully you get what I want to do.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: splitting up a long text at regular intervals
by ioannis (Abbot) on Oct 31, 2005 at 00:40 UTC | |
Re: splitting up a long text at regular intervals
by GrandFather (Saint) on Oct 30, 2005 at 23:58 UTC | |
Re: splitting up a long text at regular intervals
by EvanCarroll (Chaplain) on Oct 30, 2005 at 23:25 UTC | |
by pg (Canon) on Oct 30, 2005 at 23:43 UTC | |
Re: splitting up a long text at regular intervals
by Cody Pendant (Prior) on Oct 30, 2005 at 23:58 UTC | |
Re: splitting up a long text at regular intervals
by stabu (Scribe) on Oct 31, 2005 at 10:03 UTC |
Back to
Seekers of Perl Wisdom