Re: var watcher behaviour

[email protected] (Nick Ing-Simmons)
Newsgroups perl.loop
Organization via, but not speaking for : Texas Instruments Ltd.
Message-ID <[email protected]>
Jochen Stenzel <[email protected]> writes:
>(Of course, this is only a solution if
>we can be sure that ALL perl statements which MODIFY a variable result in only ONE
>internal write access. Am I right?)

"statement" is a vague word. 

$foo++ for (1..1000000);

is one "statement" that writes $foo many times.

I think most perl o_ps_ will (in the absence 
of ties or other C-level magic) only write it once. You cannot 
tell what XS code might do, or ties.

-- 
Nick Ing-Simmons <[email protected]>
Via, but not speaking for: Texas Instruments Ltd.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.