Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Return statement in subroutine(s) is necessary when not returning anything?by Anonymous Monk |
on Nov 02, 2015 at 23:10 UTC ( [id://1146774]=note: print w/replies, xml ) | Need Help?? |
P.S. Another argument for an explicit return:
Can you tell me what context the call to bar() is in? Nope, not from this code! (Answer: It's the same context as foo is called in.) There is a discussion in this thread.
In Section
Seekers of Perl Wisdom
|
|