How to use a 'subroutine reference' as a hash key
问题 In Perl, I'm learning how to dereference 'subroutine references'. But I can't seem to use a subroutine reference as a hash 'key'. In the following sample code, I can create a reference to a subroutine ($subref) and then dereference it to run the subroutine (&$subref) I can use the reference as a hash 'value' and then easily dereference that But I cannot figure out how to use the reference as a hash 'key'. When I pull the key out of the hash, Perl interprets the key as a string value (not a