The stupid question is the question not asked | |
PerlMonks |
Re^3: Hope a subroutine will return undef by defaultby qj1020 (Initiate) |
on Feb 12, 2014 at 22:07 UTC ( [id://1074704]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|