Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: 'my' with 'if 0' retains old value

by hubb0r (Pilgrim)
on Apr 21, 2006 at 03:52 UTC ( [id://544770]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     NOTE: The behaviour of a "my" statement modified with a statement mod
    +ifier conditional or loop construct (e.g. "my $x if ...") is undefine
    +d.  The value of the "my" variable may be "undef", any previously ass
    +igned value, or possibly anything else.  Don't rely on it.  Future ve
    +rsions of perl might do something different from the version of perl 
    +you try it out on.  Here be dragons.
    
  2. or download this
    my $v2 = -2 if 0;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found