[ic] Subroutines and ActionMaps
Mark Gibson
interchange-users@icdevgroup.org
Mon Jan 27 06:34:00 2003
Hello again,
I've come up against another brick wall while attempting to make
use of the ActionMap feature.
Where would I define a subroutine that I wish to call from within an
ActionMap?
I've tried the 'Sub' directive, eg:
Sub <<EOF
sub do_stuff {
...
return $myresult;
}
EOF
ActionMap myaction <<EOF
sub {
...
my $stuff = do_stuff();
...
}
EOF
When I go to the URL (http://.../myaction) I just get the message:
Sorry, there was an error in processing this form action. Please report the
error or try again later. (Undefined subroutine &main::do_stuff called at
(eval 1783) line 4. )
Cheers
--
Mark Gibson <gibsonm@cromwell-tools.co.uk>
Web Developer
Cromwell Group Holdings Ltd