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__"