in reply to URL2Scalar & Emailing myself

Here are two places to get started. I think they're also answered in Categorized Q&A (How can I load a webpage into my program?).
  1. You want to use LWP::Simple. It's much more portable than the Lynx solution.
  2. You want to read perlfaq9. Type `perldoc perlfaq9` at a command prompt.

Replies are listed 'Best First'.
RE: Re: URL2Scalar & Emailing myself
by Anonymous Monk on Mar 27, 2000 at 10:18 UTC
    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$

      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.
RE: Re: URL2Scalar & Emailing myself
by nascent (Novice) on Mar 27, 2000 at 10:21 UTC
    Ignore that last post. Geez, I wish this site had a preview button for this area...

    nascent