in reply to K-Mart Blue Light E-mail Auto-responder
and wondered why you didn't just do something like this:sub do_weather { open (WX, "/home/system/weather/wx.pl 2>&1 |"); my @wxdata = <WX>; close (WX); return (@wxdata); }
which would have the added advantage of having both a meaningful list context return value (broken up by lines) and scalar context return value (all the data as one string).sub do_weather { `/home/system/weather/wx.pl 2>&1`; }
-- Randal L. Schwartz, Perl hacker
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: K-Mart Blue Light E-mail Auto-responder
by Anonymous Monk on Aug 20, 2000 at 04:09 UTC | |
by Anonymous Monk on Aug 26, 2000 at 06:55 UTC | |
RE: RE: K-Mart Blue Light E-mail Auto-responder
by Anonymous Monk on Aug 20, 2000 at 04:09 UTC |