in reply to Trying to understand POE

It seems to always be 1.

Not quite. It started off at 0. It demonstrates ten counters were each incremented once, as opposed to one counter incremented ten times. In other words, it demonstrated how to create sessions variables.

Replies are listed 'Best First'.
Re^2: Trying to understand POE
by Fletch (Bishop) on Sep 28, 2004 at 22:59 UTC

    Or to put it another way, the session's heap is akin to thread local storage (e.g. pthread_getspecific if you're familiar with pthreads).