in reply to find out method name from the reference
Could Sub::Identify help?
From the Synopsis:
use Sub::Identify ':all'; my $subname = sub_name( $some_coderef );
Ordinary morality is for ordinary people. -- Aleister Crowley
In Section
Seekers of Perl Wisdom