your comments are true as they pertain to perl..
i understand how local works - no problem there.

in the case of embperl however:
i believe that the escaping has already occurred on the
block before it is processed, and therefore, in the example
that you gave, $var would still be subject to the $escmode
that was operating when the block started.  changing it from within
the block will have no effect on that block, only subsequent blocks.
so, local $escmode has no effect on any embperl processing.

--
___cliff [EMAIL PROTECTED]

"Martin A. Langhoff" wrote:

> ___cliff rayman___ wrote:
>
> > +           [- $save_escmode=$escmode; $escmode=0 -]
>
> that'd be usually written in perl as
>                 [+ local $escmode=0 ; $var +]
>
>     $escmode is set to 0 for that block only, and reset to 'saved state'
> when the block is over.
>
> martin
> --                                                         --
> To understand recursion, one must first understand recursion.
> --                                                         --
>     - Martin Langhoff @ S C I M  Multimedia Technology -
>       - http://www.scim.net      | God is real until  -
>       - mailto:[EMAIL PROTECTED]  | declared integer   -





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to