in reply to Re: value returned on m// failure
in thread value returned on m// failure

yes undef is false but causes problem if used as is when some non undef value is expected. thus the addition of '|| 0' in the function.