in reply to How to output the words that you want that came thru an html file?

grep returns a list. In this case, it is a list of ONE element. When you assign a list to a scalar, you get the number of elements.

try:

my ( $introduction ) = grep /Game Introduction - Marvel: Avengers Alli +ance/, @content; # Parens added in order to provide LIST context, and removed where not + necessary

             I hope life isn't a big joke, because I don't get it.
                   -SNL

  • Comment on Re: How to output the words that you want that came thru an html file?
  • Download Code

Replies are listed 'Best First'.
Re^2: How to output the words that you want that came thru an html file?
by Anonymous Monk on May 04, 2012 at 09:22 UTC
Re^2: How to output the words that you want that came thru an html file?
by stone_ice (Initiate) on May 04, 2012 at 05:32 UTC

    Oh I see... I tried and it printed the whole html code. It's the same if I printed the @content..