in reply to Re: LWP::Simple emversus/em ASP ?
in thread LWP::Simple vs. ASP ?

Thanks - that helps - I would never have got there on my own. I now don't get a "Use of uninitialized value in print" warning. But aggravatingly I find that $html is empty. I'm completely puzzled by that. When you ran it, did you find that you got a page (albeit mutilated by broken links) when you printed $html? I just get a blank space - but only with that url; other urls give me a page.

§ George Sherston

Replies are listed 'Best First'.
Re: Re: Re: LWP::Simple emversus/em ASP ?
by robin (Chaplain) on Dec 22, 2001 at 00:40 UTC
    Is this running from a CGI script? I do get a page, and it's a frameset. That would look blank viewed in a web browser, because the the frames are specified using relative links.

    If you mean that the $html string is literally empty, try adding the line

    use LWP::Debug;
    before the get() call. You'll get a detailed trace of what LWP is doing, which should help you to diagnose the problem.
      A frameset is *exactly* what it was... now I know how to make it work. Thanks a zillion :)

      § George Sherston