in reply to Getting name of a lexical variable without PadWalker?

Erm, B::Xref is dependent on B, which is an XS module (albeit bundled with the perl distribution).

Dave.

  • Comment on Re: Getting name of a lexical variable without PadWalker?

Replies are listed 'Best First'.
Re^2: Getting name of a lexical variable without PadWalker?
by LanX (Saint) on Jul 15, 2020 at 21:38 UTC
    > bundled with the perl distribution

    yep, correct, this I meant.

    hence

    > > without dependency to a non-core XS module

    updated

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Re^2: Getting name of a lexical variable without PadWalker?
by LanX (Saint) on Jul 16, 2020 at 15:40 UTC
    > Erm, B::Xref is dependent on B,

    B::Xref itself is written in Perl, necessary methods are imported from B

    > which is an XS module (albeit bundled with the perl distribution).

    B is advertised as "Perl's Compiler Backend" and bundled in core.

    Hence no dependency risk, using it is far safer as recompiling an XS module.

    PadWalker has bugs, a Pure Perl solution could be updated more often.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery