develooper Front page | perl.libwww | Postings from December 2001

Memory problem?

Gustaf Bergstr?
December 1, 2001 09:12
Memory problem?
Message ID:
My script just stops and I don't even get an error message. 
I have located the lines that makes it stop. They are 
inside a foreach-loop, probably executed about 400 times.

        $data = $url;				
	$lookup = new HTTP::Request 'GET', "$data";	
	$response = $ua->request($lookup);		
	@lines = split (/\n/, $response->content);

It seems to be the third line here that makes the script 
stop. I suppose there could be a particular $url value that 
is the problem, but I think it is more likely that this is 
a memory problem. Suggestions? Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About