|
|
| go ahead... be a heretic | |
| PerlMonks |
Comment on |
| ( #3333=superdoc: print w/ replies, xml ) | Need Help?? |
|
This is the first mention I have heard of "dereferencing" a variable. I was looking for it in perldoc and found some references to it, but wish to double check what I have gathered. It seems to me:
&{ $functions{$doit} }; Would be seen by Perl as: "Take the value of $functions{$doit} and treat it as a sub name" Is that about right? I also keep seeing the use of my $thing = $q->param('whatever'); but am having trouble searching for it as I do not know what name it goes by... Thanks, for the help and better code. In reply to Re: Re: Avoiding user-input in sub calls.
by pekkhum
|
|