I'm writing a small program that does nothing really to learn perl. (I
plan on playing with this filehandle.)
So far it is this:
#!/usr/bin/perl -w
exec "wget http://weather.yahoo.com/forecast/Austin_TX_US_f.html";
open (WEATHER, "Austin_TX_US_f.html") or die "Can't open file: $!\n";
print "hello\n";
while ($line = <WEATHER>) {
# if ($line =~ /$<font size="\+2"/); {
print "hello";
print $line."\n";
# }
}
everytime I run it, I get the messages from wget, open () does not die,
yet nothing else is printed to stdout.
???
(btw, i realize there are far simpler ways to do some of these things, I
am just doing it this way to reduce the magic perl does for now.)
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]