XP is just a number | |
PerlMonks |
Re: Quickly detecting variable writesby BrowserUk (Patriarch) |
on Jan 05, 2007 at 02:41 UTC ( [id://593058]=note: print w/replies, xml ) | Need Help?? |
I'm probably missing something, but why not take a copy of $x before the loop and check if it has changed afterwards?
That wouldn't detect serial changes that result in no change--$x += 10; $x += -4; $x += -6;--but whether that is a problem depends upon what the watchers are watching? Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|