in reply to Re^3: Gentleman, I'm lost.
in thread Gentleman, I'm lost.

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^5: Gentleman, I'm lost.
by Corion (Patriarch) on Nov 26, 2016 at 09:44 UTC

    What steps have you taken for yourself to find out what needs to be done? If you tell us where you are stuck that makes it much easier for us to suggest to you how to best approach your problem. This site is not a code writing service, so we expect you to do your work.

    If you're wondering what functions to use, consider reading chomp.

    If you're stuck with the overall logic, consider first writing a very simple program that doesn't do anything else other than joining together lines, instead of trying to make everything fit with your existing program.