It displayed the output thanks to that sir,, hmm can you please explain to me the lines 17 up to 20? Im confused on that part...

Thanks

Update

I've read the code but still confused specially on part line 20-21, if Im not mistaken it's a regular expression.. So far the out put is almost ok , the last thing I would want to do is arranging them in order.. now the output is like this:

Game Introduction - Marvel: Avengers Alliance Welcome to the quick start guide for Marvel: Avengers Alliance, a supe +rhero role role playing game from Playdom. Recruit heroes, battle enemies and ta +ke on your friend’s teams in this action/strategy game.</p> <p>I would like to arrange them to be aligned at the left side removin +g the spacing at the Game Introduction and role part, what I would li +ke to achieve now is something like this.
Game Introduction - Marvel: Avengers Alliance Welcome to the quick start guide for Marvel: Avengers Alliance, a supe +rhero role playing game from Playdom. Recruit heroes, battle enemies and tak +e on your friend’s teams in this action/strategy game.

Is there a way that somehow arrange the text inside the string? or is it normal for this kind of output because the input came from an html file

Thanks

In reply to Re^4: How to output the words that you want that came thru an html file? by stone_ice
in thread How to output the words that you want that came thru an html file? by stone_ice

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.