in reply to using return types

I think you want to use "undef" and then
unless (defined($result)) {...}
but to be honest your code is a bit messed up, you seem to have got the main body confused with the subroutine - or your formatting has problems.

dave hj~

Replies are listed 'Best First'.
Re: Re:UPDATE using return types
by Brother Sharky (Initiate) on Jan 21, 2002 at 20:39 UTC
    Thanx to all 4 the hlp.
      dash2 gave an example, check out "perldoc -f defined"