in reply to Re: Printing Stacks
in thread Printing Stacks

I did it this way and it worked, but it all comes out on one line and I have tried adding a new line in several areas, but I keep getting errors. Where would I add a new line character to make sure they all come out on separate lines?

Replies are listed 'Best First'.
Re^3: Printing Stacks
by hippo (Archbishop) on Mar 27, 2018 at 07:56 UTC

    Either refrain from chomping @stack or else replace print with say.

    I have tried adding a new line in several areas, but I keep getting errors.

    If you want help fixing errors you have to say what those errors were (precisely) and how you generated them (with an SSCCE). Just saying "I keep getting errors" is not informative enough.

      Sorry, didn't mean to be vague. Getting rid of the chomp worked.