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:
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?
Yes, $index is the name of my subroutine. $index = &loginforeach $index (keys %{$_[0]}){ print "<TD WIDTH=\"$table_vars{$index}\">$index</TD>\n"; }
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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do you run a subroutine from inside HTML code?
by marto (Cardinal) on Mar 15, 2006 at 16:14 UTC | |
Re: How do you run a subroutine from inside HTML code?
by dorward (Curate) on Mar 15, 2006 at 16:21 UTC | |
Re: How do you run a subroutine from inside HTML code?
by ikegami (Patriarch) on Mar 15, 2006 at 16:36 UTC | |
Re: How do you run a subroutine from inside HTML code?
by Tanktalus (Canon) on Mar 15, 2006 at 16:19 UTC | |
by coldmiser (Hermit) on Mar 15, 2006 at 16:23 UTC | |
Re: How do you run a subroutine from inside HTML code?
by matija (Priest) on Mar 15, 2006 at 16:39 UTC | |
Re: How do you run a subroutine from inside HTML code?
by coldmiser (Hermit) on Mar 15, 2006 at 17:03 UTC | |
by Anonymous Monk on Mar 15, 2006 at 20:54 UTC | |
by Anonymous Monk on Mar 15, 2006 at 20:56 UTC |
Back to
Seekers of Perl Wisdom