hesco has asked for the wisdom of the Perl Monks concerning the following question:
At the end of it all, is some logic which sorts out the includes and excludes to construct a web page. My question is this: How can I execute an array element?push(@incl,"&CreateLogInForm(\$page,\$error)");
If $incl[n] = "CreateLogInForm($page,$error)", how can I have it run the subroutine, passing the appropriate arguments so I can concatenate its results to the cgi page I'm building?
Here is what is not working:
This throws an error to the browser: "Undefined subroutine &main::CreateLogInForm($page,$error) called . . . " The same error is reported in /var/log/apache-ssl/error.log.foreach $incl (@incl) { $page .= &$incl; }
Can anyone help me past this one, please?
-- Hugh
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I execute an array element?
by rhesa (Vicar) on Feb 02, 2006 at 02:27 UTC | |
|
Re: How do I execute an array element?
by ikegami (Patriarch) on Feb 02, 2006 at 04:20 UTC | |
|
Re: How do I execute an array element?
by jjohn (Beadle) on Feb 02, 2006 at 21:25 UTC |