Piers Harding piers at ompa.net
Fri Nov 8 03:46:33 CST 2002

Wont this do the trick?

if (! defined(some_func()){


On Fri, Nov 08, 2002 at 10:00:56PM +1300, Richard Hector wrote:
> How do I detect that a function call has returned undef?
> Some functions seem to return zero or another number as a valid result,
> and undef to indicate failure. But if I try to compare it with anything,
> it complains of using an uninitialised value, or something like that.
> Unless it's some other bug in my code ...
> Thanks,
> Richard

More information about the Wellington-pm mailing list