in reply to Re: Return statement in subroutine(s) is necessary when not returning anything?
in thread [SOLVED] Return statement in subroutine(s) is necessary when not returning anything?
P.S. Another argument for an explicit return:
sub foo { print "I am foo\n"; bar(); }
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.
|
|---|