in reply to Re: HTTP::Request and caching...
in thread HTTP::Request and caching...
HTTP::Request creates the request structure it does not fetch web pages. That function is provided by LWP::UserAgent. In your code you call the constructor for these two classes inside you subroutine, so the instance of the class is local to the subroutine and goes out of scope when you exit the subroutine. This should take care of any data persistance problem. So your answer is no.
Note that memory for the instance is not released until the program exits so that memory is reserved everytime your subroutine runs but is not released. This is a memory leak and could be causing problems depending on how many times your subroutine is called.
Note: I corrected a syntax error in my other post.
s/net/not/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: HTTP::Request and caching...
by jthornton (Initiate) on Apr 22, 2005 at 00:31 UTC | |
|
Re^3: HTTP::Request and caching...
by jthornton (Initiate) on Apr 21, 2005 at 20:38 UTC |