Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Is there a Perl API (XS) for ->can ?

by LanX (Sage)
on Oct 08, 2021 at 08:39 UTC ( #11137336=note: print w/replies, xml ) Need Help??


in reply to Is there a Perl API (XS) for ->can ?

FWIW: My idea was that a direct call is more efficient.

Hence the XS equivalent to

$sub = UNIVERSAL::can($obj, "print");

But UNIVERSAL says

> # but never do this!

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

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2022-05-26 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (93 votes). Check out past polls.

    Notices?