Re: Merging multiple strings

2012-04-25 Thread Rob Dixon
On 25/04/2012 13:52, Paul Clark wrote: Hi All, I have a small project that is stumping me aside from using a straight brute force. I am processing output from an accounting program that is producing some sort of printer control for some 3rd party print processing. I have several partial lines

Re: Merging multiple strings

2012-04-25 Thread Michael Rasmussen
On Wed, Apr 25, 2012 at 08:52:52AM -0400, Paul Clark wrote: > Hi All, > > I have a small project that is stumping me aside from using a straight brute > force. > > I am processing output from an accounting program that is producing some > sort of printer control for some 3rd party print process

Re: Merging multiple strings

2012-04-25 Thread John SJ Anderson
On Wednesday, April 25, 2012 at 8:52 AM, Paul Clark wrote: > Any suggestions for a more elegant solution? What you have there looks like an example of the 'Longest Common Substring Problem' -- http://www.softpanorama.org/Algorithms/lcs.shtml Seems like String::LCSS will help -- https://metacpan.o

Merging multiple strings

2012-04-25 Thread Paul Clark
Hi All, I have a small project that is stumping me aside from using a straight brute force. I am processing output from an accounting program that is producing some sort of printer control for some 3rd party print processing. I have several partial lines that have commands to "over write" th

Re: Merging multiple strings

2012-04-24 Thread Rob Dixon
On 24/04/2012 18:37, Paul Clark wrote: > Hi All, > > I have a small project that is stumping me aside from using a > straight brute force. > > I am processing output from an accounting program that is producing > some sort of printer control for some 3rd party print processing. I > have several

Merging multiple strings

2012-04-24 Thread Paul Clark
Hi All, I have a small project that is stumping me aside from using a straight brute force. I am processing output from an accounting program that is producing some sort of printer control for some 3rd party print processing. I have several partial lines that have commands to "over write"