Change your if line to this, instead:
if( ref($runmodes->{ $action }) eq 'HASH' ) {
That should do the trick, no?
bbfu
Black flowers blossum
Fearless on my breath
In reply to Re: Testing for existence of subroutine ref?
by bbfu
in thread Testing for existence of subroutine ref?
by legLess
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |