Schwern wrote:

   > Let me see if I understand this...
   >
   >   $Foo is true;
   >
   >   # Meanwhile, in another part of the city...
   >
   >   $Foo = 0;
   >   print "My spider sense is tingling" if $Foo;
   >
   > Does that print or not?

Not. The run-time property is set on the *value* in $Foo, not on the variable
itself. Change the value, change the properties.


   > I can see the need for wanting to disassociate truth from value (I've
   > wanted it myself) but if $Foo remains true, even after I've assigned a
   > false value to it, then yes, that does count as action-at-a-distance
   > and is probably a Bad Thing.

Yes. perhaps even a Very Bad Thing. ;-)


   > However, if assigning to $Foo clears the eariler assertion of truth,
   > then there's no problem.

Yep.

Damian

Reply via email to