Gunnar Hjalmarsson said:
Well I already googled quite a bit but it did not help. I have already
updated all the perl libraries.
If the question was not clear enough let me try to repeat this. I'm
basically fetching pages from the web containing links.
Those links I store in URI objects, which I collect in a large list.
This list I later walk though printing out each object calling the
following function:
foreach $uri (@uris)
{
print $uri->host() . "\n";
}
Sometimes I get the error above. If I call the perl script again, on
the same page, then all of a sudden it works.
So it occurs randomly, sometimes and I can't reproduce it. I thought
it has something to do with the network.
But this can't be since the fetching occurs earlier and the call
$uri->hsot() does not involve the network.
In the vey beginning it would not even allow me to call the host()
function, but after updating the modules over the cpan console that
got fixed.
So I really have no clue what it could be. My last thought was, that I
pass in some invalid argument, for ex an invalid URL so that its not
possible to call the host() function?