Kjetil Kjernsmo wrote:
>
> Actually, the problem was far less reproducible than I first
> thought... At some point, I would get this error with
> use URI;
> use LWP::UserAgent;
> my $netloc = URI->new('http://www.blogger.com/feeds/default/blogs');
> my $ua = LWP::UserAgent->new;
> 
> warn "foo";
> print "Content-Type: text/plain\n\nfoo";
> 
> but that works right now...
> 
> For a while, I could rearrange the use statements to make it work, but
> that now appears to be random...

Well, that is pretty weird.  If some of the Apache children are using a
different URI.pm than the standard system one, you could find out by
logging the %INC entry before you try to call URI->new.

  warn "URI.pm location: $INC{'URI.pm'}\n";

If it's different for the failures than it is for the successes, you
have your culprit.

Regards,
Philip

Reply via email to