in reply to Prohibiting redeclaration of lexicals in inner scope
in thread Prohibiting redeclaration of lexicals in inner scope

I search CPAN for lexical and didn't find anything that might do the job. I'm sure it would be possible to write a source code filter for this (but you'll need perl 5.8.0).

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated

  • Comment on Re: Prohibiting redeclaration of lexicals in inner scope

Replies are listed 'Best First'.
Re: Re: Prohibiting redeclaration of lexicals in inner scope
by shotgunefx (Parson) on Apr 04, 2003 at 14:21 UTC
    FYI, I've used source filters in 5.6*

    -Lee

    "To be civilized is to deny one's nature."