in reply to Re: URL2Scalar & Emailing myself
in thread URL2Scalar & Emailing myself

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$

Replies are listed 'Best First'.
RE: RE: Re: URL2Scalar & Emailing myself
by btrott (Parson) on Mar 27, 2000 at 10:52 UTC
    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.