Problems with Macperl 5.6+CGI.PM

[email protected] (Ryan Surber) Sun, 14 Apr 2002 00:29:27 -0700 (PDT)
Newsgroups perl.macperl.webcgi
Message-ID <[email protected]>
Hi all. I'm new to the list.

I've DL'd the newest version of MacPerl after reading
this website; 

http://www.devshed.com/Server_Side/Perl/DataMining/page1.html

I setup Macperl and ran this script (straight off the
website).

#!/usr/bin/perl
use LWP::Simple;

my $content = get("http://www.yahoo.com"); #Store the
output of the web page (html and all) in content
if (defined $content)
{
    #$content will contain the html associated with
the url mentioned above.
    print $content;
}
else
{
    #If an error occurs then $content will not be
defined.
    print "Error: Get failed";
}



.... problem is, I can't get more than a few lines
worth of text from the page. I've tried other sites
thinking that it was a fluke... oddly enough, I can't
get more than couple lines of text from cnn.com. I
tried disney.com next. Same thing... funny thing is,
the amount of lines differs from site to site. One
site would give me the first 5 lines, while another
would give me 12 lines. [...shaking head...]

I am *totally* stumped and am unable to track down
what is going wrong.

If anyone out there could either verify my problem or
explain what I'm doing wrong I would be greatfully
indebted to you.

Many thanks,
Devo.

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/