From: Ed A. <ed...@me...> - 2004-03-30 20:26:39
|
On Tue, 30 Mar 2004, Maurice Delaney wrote: >/PerlApp/grab/de_tvtoday/tv_grab_de_tvtoday did not return a true value. Hmm, this is because of 'require $exe' in exe_wrap.pl. We could add '1;' to the end of the grabber, but I think it would be better to change exe_wrap.pl, make it do something like open EXE, $exe or die; undef $/; my $code = <EXE>; eval $code; Then returning a true value wouldn't be required. (BTW, the 'exit $r' is probably not quite right - 'exit 0' would be better, since Perl scripts don't normally return the last value to the environment. But I have some feeling of deja vu here, is there a reason for the extra 'exit'?) -- Ed Avis <ed...@me...> |