When I try the first option from How can I load a webpage into my program?, I get:
nascent@snafui perl$ cat ./url.pl
#!/usr/bin/perl
use LWP::Simple;
$webpage=get "http://www.perlmonks.org";
print $webpage;
nascent@snafui perl$ ./url.pl
Can't locate LWP/Simple.pm in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at ./url.pl line 3.
BEGIN failed--compilation aborted at ./url.pl line 3.
When I try the second option, I get:
nascent@snafui perl$ cat ./url.pl
#!/usr/bin/perl
$webpage='lynx -source http://qs.cnnfn.com/tq/stockquote?symbols=AKAM';
print $webpage;
nascent@snafui perl$ ./url.pl
lynx -source http://qs.cnnfn.com/tq/stockquote?symbols=AKAMnascent@snafui perl$ | [reply] |
It looks like you don't have LWP::Simple installed, which
is weird, since I thought it was a standard module...
perhaps not. Anyway, go to CPAN and install
Bundle::LWP.
| [reply] |
Ignore that last post. Geez, I wish this site had a preview button for this area...
nascent | [reply] |