in reply to Hope a subroutine will return undef by default
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..?!?
|
|---|