in reply to URL page only retrieves partially

I can't reproduce your problem. I c&p'd your code straight into perl at the command prompt and ran it and the output contained everything from the content of the <TITLE> tag at the top  Earnings.com - Earnings Announcements down to the copyright notice 1999-2002 Earnings.com, Inc., All rights reserved and footer menu privacy policy  |terms of service at the bottom.

There is a large amount of whitespace introduced by your regex. Sorry to ask this, but are you sure that the rest hasn't simply scrolled off the top of your screen? Have you tried redirecting the output to a file and looking at it in your editor?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller

Replies are listed 'Best First'.
Re: Re: URL page only retrieves partially
by canguro (Novice) on May 09, 2003 at 03:51 UTC
    You are absolutely right. I am fairly new to Perl, retrieving web pages, and using an editor, so I did not realize that my editor must have a limit on the amount of data it displays. Apparently it displays only the most recently found data, up to that limit, and as new data comes in the older data scrolls off. Thanks for your sharp idea!