in reply to Re^4: Perl scoping not logical...?
in thread Perl scoping not logical...?

You are far from the first to want lexical subroutines. There's a source-filter using proof-of-concept in Sub::Lexical. I don't recall there being any objection to actually implementing them in perl5 - it just hasn't happened to date (and may never, since it would be a lot of work and offer limited benefit over just using a lexical coderef).