Hi, Everyone,
I'm trying to learn Perl on my own and making some progress, however, I'm still a newbie. I figure I can speed up my learning process by trying out some simple programs. I have a pet project that attempts to retrieve some stock data info and strip the tags from the HTML. (By the way, this is for my own practice, not for any commercial use of any kind). I am using the following code but getting the 'Use of uninitialized' message shown above. I am probably missing something rather obvious.
Can someone straighten me out? Here is the code:
#!/usr/bin/perl
use warnings;
use strict;
use LWP::Simple;
my $site="my $content=get $site;
my $message=$content;
$message=s/<[>]*>//g;
print $message;
Your help is very much appreciated. Many thanks.
I'm trying to learn Perl on my own and making some progress, however, I'm still a newbie. I figure I can speed up my learning process by trying out some simple programs. I have a pet project that attempts to retrieve some stock data info and strip the tags from the HTML. (By the way, this is for my own practice, not for any commercial use of any kind). I am using the following code but getting the 'Use of uninitialized' message shown above. I am probably missing something rather obvious.
Can someone straighten me out? Here is the code:
#!/usr/bin/perl
use warnings;
use strict;
use LWP::Simple;
my $site="my $content=get $site;
my $message=$content;
$message=s/<[>]*>//g;
print $message;
Your help is very much appreciated. Many thanks.