It seems that that is a question for the authors of tftp, not
a Perl question. But there may be a Perl work-a-round.
It prints an error when run interactively.
Does it do that when run noninteractively? You could try capturing and
parsing its stderr. IPC::Run might be a good way. (I think it might also
help you trick tftp into thinking it is running interactively, if that is
necessary.)
tftp does run, it just can't find the host.
It returns 0 because it ran, didn't work but it ran. :-(
Well, that was probably a poor design decision. By that criterion, nothing
should ever exit with anything but 0. If it ran, it ran. If it didn't
run, it can't exit with anything at all.
Xho
--
--------------------
http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.