http://www.perlmonks.org?node_id=1074439


in reply to Hope a subroutine will return undef by default

Interesting question... will have to try this out.

call_sub; my $what_do_I_get = sub { return undefined; }

From The Docs

...You can omit the EXPR, in which case nothing is undefined, but you still get an undefined value that you could, for instance, return from a subroutine, assign to a variable, or pass as a parameter. ...

Not sure if one could make that the default though..?!?

...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results.