in reply to Re: static variable hack
in thread static variable hack

Right, thanks. Also I have ran this code with "use strict;". If, "my" isn't executed, why doesn't the "strict" complain ?

Replies are listed 'Best First'.
Re^3: static variable hack
by ikegami (Patriarch) on Oct 29, 2007 at 20:19 UTC
    Creating the variable is my's compile-time effect. The my gets compiled whether it gets executed or not.
      Apologies, thanks.
        Me too, that was rude of me. (Removed "This was mentioned in the thread I linked." from grandparent.)