Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Others have given you several solutions, but there is one more.
strict will only cause an error if you try to call the sub
by using a string. It does not stop you taking a reference. So
Is perfectly legal. But if you don't want the extra variable
will work too. But the benefit of using the variable is that you can check that the sub actually exists with
In reply to Re: Strict, strings and subroutines
by gbarr
|
|