in reply to Re^3: Is { } an empty block or a bug in perl?
in thread Is { } an empty block or a bug in perl?

After I wrote the initial reply this morning, I was thinking that it might be this sort of thing. I like to use an explicit return in my subs, so I guess I wouldn't run into this problem.

thor

Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come

  • Comment on Re^4: Is { } an empty block or a bug in perl?

Replies are listed 'Best First'.
Re^5: Is { } an empty block or a bug in perl?
by Joost (Canon) on Jul 06, 2005 at 23:48 UTC
      I understand that a subroutine returns the last statement evaluated. I just like the explicit return. It's just a matter of preference.

      thor

      Feel the white light, the light within
      Be your own disciple, fan the sparks of will
      For all of us waiting, your kingdom will come