in reply to Re^2: Using GET in a loop
in thread Using GET in a loop

Well, now the next question: is it $content_full or $content that is getting appended to instead of replaced? That is, is it the result of LWP::Simple's get function or HTML::Stripper's strip_html function that is not working correctly?

davidj

Replies are listed 'Best First'.
Re^4: Using GET in a loop
by New Novice (Sexton) on Sep 17, 2004 at 10:28 UTC
    I think it is the $content_full variable. I printed content_full into a file last week and it got bigger and bigger being appended.

    There is a hint at this problem in the LWP::User Agent documentation. It states that there should be a new object for each request. Presumably, because an internal variable in GET is appended and not replaced with each new request.