in reply to Re^7: "advanced" Perl functions and maintainability
in thread "advanced" Perl functions and maintainability

The subroutine equivalent would be leaving off the return statement and letting the last statement implicitly be the return value
People write code that does that all the time.

You can easily tell whether or not you can check the return value just from looking at either one, right?
I don't understand that final question. Are you suggesting there is a difference in both functions?
  • Comment on Re^8: "advanced" Perl functions and maintainability

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.