in reply to Re^2: question on multi line pattern matching for html formatting
in thread question on multi line pattern matching for html formatting

OK, new guy has a typing problem. Turns out I WAS capturing the output in an array, I just mis-typed the name of that array later when I wanted to print it to see my results. So:

@newArray = qq{*$_*\n};

works. I am now figuring out how to pick up each paragraph that is formatted until I get to the end of the file, and save the completed, formatted output into the new array, for later output to the final html file.
Sorry to use bandwidth when I didn't need to. *embarrasses self for first time in new community*

Replies are listed 'Best First'.
Re^4: question on multi line pattern matching for html formatting
by tallCoolOne (Initiate) on May 19, 2009 at 05:47 UTC
    Well, it turns out I need help after all. Either I need a better understanding of the overall function of this little routine, or just a simple explanation of how to save one group of text from the original array, to correspond with the text file being processed. It seems to me that the line I'm saving into the new array kicks out one paragraph at a time. I want to accumulate paragraphs from one text file until done, and then print it out. My limited knowledge of this sort of manipulation has me grasping at straws, and all I come up with is the last paragraph in the file. Would you be willing to help me out a little further with a means to save each text file in it's complete form, and then be able to catch the next file, one at a time. I'd be grateful for whatever you could add. Thanks again, Mark