http://www.perlmonks.org?node_id=303808


in reply to Re: Re: Avoiding user-input in sub calls.
in thread Avoiding user-input in sub calls.

..."dereferencing" a variable...
It isn't dereferencing a 'variable' but a subroutine.
"Take the value of $functions{$doit} and treat it as a sub name" Is that about right?
More or less, yeah. But I have to admit that my powers of syntax explaining are pretty poor, I understand in my head what is going on but I don't want to lead you down the garden path with my crap explanations. There are many people here who could explain far more eloquently what is going on and hopefully one of them will step in to help both of us ;)
  • Comment on Re: Re: Re: Avoiding user-input in sub calls.