in reply to volatile memory?
Unless you use parallel threads which mysteriously change the value of $buffer, I don't think that Perl gets "out of sync" when writing your memory. You did not specify at which point $buffer is not equal to $array[0]. Of course there are some parts in your program where these variables are potentially not equal (for example, during the execution of mytestfunc).
BTW, are you sure that we are talking about numerical unequality, and not string unequality? I.e., $buffer contains always a number, right? Because you are using != and not ne.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: volatile memory?
by kjcdb8er (Initiate) on Sep 02, 2010 at 08:11 UTC | |
by wwe (Friar) on Sep 02, 2010 at 10:10 UTC | |
by renshui (Novice) on Sep 02, 2010 at 09:29 UTC |