Help for this page

Select Code to Download


  1. or download this
    use Sub::Util qw/subname/;
    sub foo {}
    my $test = \&foo;
    print subname($test);  # prints "main::foo"