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

When you use empty hashrefs, are they by themselves, or are they at least assigned to something or used as an arguement to a subroutine? I cannot think of anytime that I've just put an empty structure dangling in the wind. If you do, could you provide an example? I'm genuinely curious.

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^2: Is { } an empty block or a bug in perl?

Replies are listed 'Best First'.
Re^3: Is { } an empty block or a bug in perl?
by Joost (Canon) on Jul 06, 2005 at 15:59 UTC
      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