in reply to Accessing a lexical variable of another file.
Certainly not possible with pure Perl - and for a good reason, it's not supposed to be. XS modules can play all sorts of dirty tricks with Perl internals, of course, so moritz's suggestion of PadWalker would (likely) work.
Then again, this feels like a classic XY Problem to me. Why do you want to use lexical variables from different files to begin with?
|
|---|