canguro has asked for the wisdom of the Perl Monks concerning the following question:
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="http://chart.yahoo.com/d?a=3&b=1&c=2003&d=3&e=11&f=2003&g=d& +s=crio"; my $content=get $site; my $message=$content; $message=s/<[>]*>//g; print $message;
Your help is very much appreciated. Many thanks.
2003-04-22 edit ybiC: <code> tags
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Use of uninitialized value in substitution (s///)
by Limbic~Region (Chancellor) on Apr 22, 2003 at 23:33 UTC | |
|
Re: Use of uninitialized value in substitution (s///)
by Abigail-II (Bishop) on Apr 22, 2003 at 23:52 UTC | |
|
Re: Use of uninitialized value in substitution (s///)
by Enlil (Parson) on Apr 22, 2003 at 23:51 UTC | |
|
Re: Use of uninitialized value in substitution (s///)
by The Mad Hatter (Priest) on Apr 22, 2003 at 23:40 UTC | |
|
Re: Use of uninitialized value in substitution (s///)
by vek (Prior) on Apr 23, 2003 at 03:37 UTC | |
|
Re: Use of uninitialized value in substitution (s///)
by canguro (Novice) on Apr 23, 2003 at 19:34 UTC |