in reply to Re^2: Hope a subroutine will return undef by default
in thread Hope a subroutine will return undef by default

You are right, javascript does this. "return ;" in the middle of a function has the same return value as the case when execution of the function goes the end of the function body without a return statement --- both cases return "undefined" or null. No surprises.
  • Comment on Re^3: Hope a subroutine will return undef by default