Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Using GET in a loop

by davidj (Priest)
on Sep 17, 2004 at 10:22 UTC ( [id://391738]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://391738]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-24 10:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found