Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: static variable hack

by InfiniteLoop (Hermit)
on Oct 29, 2007 at 20:15 UTC ( #647921=note: print w/replies, xml ) Need Help??


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 (Pope) 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.)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://647921]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2020-05-27 03:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (152 votes). Check out past polls.

    Notices?