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

coldmiser has asked for the wisdom of the Perl Monks concerning the following question:

I have a small bit of code that I'm trying to run a subroutine from here is an example:
foreach $index (keys %{$_[0]}){ print "<TD WIDTH=\"$table_vars{$index}\">$index</TD>\n"; }
Yes, $index is the name of my subroutine. $index = &login
The problem is that the HTML just prints the name of the subroutine and doesn't actually run it.
Does anyone have any experience with how to run a subroutine from inside a table?