Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Getting name of a lexical variable without PadWalker?

by dave_the_m (Monsignor)
on Jul 15, 2020 at 21:10 UTC ( [id://11119375]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11119375]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (None)
    As of 2024-04-19 00:04 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found