in reply to Re^2: 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?

Yes, explicit return with void is better than implicit return. It makes your API more reliable. Later tonight I'll dig up and update this post as to why explicit exits are important as well...
  • Comment on Re^3: Return statement in subroutine(s) is necessary when not returning anything?
  • Download Code

Replies are listed 'Best First'.
Re^4: Return statement in subroutine(s) is necessary when not returning anything?
by thanos1983 (Parson) on Nov 02, 2015 at 23:11 UTC

    Hello again stevieb,

    Yeah that would be great, please do post anything you find. More info is always welcome. :D

    Seeking for Perl wisdom...on the process of learning...not there...yet!