in reply to Concurrent lexical scopes?
After filtering ...use Sub::Lexical; my sub foo { print "I'm in a lexically scoped sub, hurrah!\n"; } foo();
This seems to have work exactly as I had it before as it passes the module's test suite. My thanks go to Joost who's node inspired me to think of this solution. Now who ever said local() was mis-used ...local $Sub::Lexical::LEXICALS{foo}; $Sub::Lexical::LEXICALS{foo} = sub { print "I'm in a lexically scoped sub, hurrah!\n"; }; $Sub::Lexical::LEXICALS{foo}->();
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Concurrent lexical scopes?
by Joost (Canon) on Jun 12, 2002 at 11:12 UTC | |
by broquaint (Abbot) on Jun 12, 2002 at 11:41 UTC |