Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Name for what a coderef is pointing at

by haukex (Archbishop)
on Jul 24, 2018 at 23:01 UTC ( [id://1219206]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    print refto(\&foo), "\n";             # prints "main::foo"
    print refto(\&Foo::Bar::blah), "\n";  # prints "Foo::Bar::blah"
    print refto(sub{}), "\n";             # prints "main::__ANON__"
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1219206]
Approved by Athanasius
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-19 03:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found