in reply to Re^4: Accessing single element without args
in thread Accesing single element without args

No. Your original post shows that @r is created as a lexical variable within sub interface_control. So, even if you could somehow access @r from outside the sub, you would have to do so either:

I’m not familiar with PadWalker, but following Anonymous Monk’s comment above, I had a quick look. As I understand it, PadWalker allows you to access variables in subroutines higher than your current position in the call stack. As you want to access a variable within a subroutine you will be calling, this module won’t help you either. :-(

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Replies are listed 'Best First'.
Re^6: Accessing single element without args
by Anonymous Monk on Mar 31, 2015 at 06:39 UTC

    I’m not familiar with PadWalker, but following Anonymous Monk’s comment above, I had a quick look. As I understand it, PadWalker allows you to access variables in subroutines higher than your current position in the call stack. As you want to access a variable within a subroutine you will be calling, this module won’t help you either. :-(

    Yeah, you're pretty much correct ...

    though peek_sub *might* yield some result but it probably won't ... its not worth even thinking about it let alone trying it out

    coping with scoping OP does not :)