i would use system() instead of exec.  is the file being created?
i'd look into using the good ole LWP for things like this.
also try adding this:
$|++;
also, i'd recommend this url even if you're problem isn't buffering.
it's a great article:
    http://www.plover.com/~mjd/perl/FAQs/Buffering.html

Paul Sack wrote:

> 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]

--
tom carlile                     [EMAIL PROTECTED]
professional systems wrangler



---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to