There's a reason such a simple question like this got posted. The question boils it down really well. And it got answer easily. My problem answer myself was that I let it get to confusing. The problem as I saw it was this:
"Given an input unix text file that has been broken into an array by lines, had any unnessacry characters replaced with ! and split based on those !; find a keyword followed by data of unknow size that can be changed at any time and add </table><br><br><table border> to the end of it."
Which is a much harder to answer question then "If I'm searching for a keyword which is followed by "stuff", how can I add some text after the "stuff"?"
Well, that's what was going through my head. I broke the problem down to post it here, but didn't for myself.
BTW, I took Fastolfe's suggestion and it worked fine.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.