I know it's a little weird, but I would like to have my subroutines to return undef if there is no explicit "return ..." statement inside the subroutine.
Currently perl will return the last values that this routine sees, defeating the logic of one of the key caller functions.
wonder if there is a way to force to return undef by default
Thanks in advance,In reply to Hope a subroutine will return undef by default by qj1020
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |