How to call functions in other files?
[prev]
[thread]
[next]
[Date index for 2005/01/25]
Hi Everybody,
I'm trying something like:
db.pl:
godone()
{
# do something
}
---
NewNoticeSubmitPart1.pl:
require "db.pl";
godone($q,"SessExpired.html");
--
But I get:
[Mon Jan 24 18:51:56 2005] [error] Undefined subroutine
&ModPerl::ROOT::ModPerl::Registry::usr_local_apache2_htdocs_eTracICR_perl_NewNoticeSubmitPart1_2epl::godone
called at
/usr/local/apache2/htdocs/eTracICR/perl/NewNoticeSubmitPart1.pl line 16,
<F> line 20.\n
---
How do I do this sort of thing? It works fine in regular CGI.
Thanks much.
Mark Mc
425-369-8286
 |
How to call functions in other files?
Mark McWiggins 02:56 on 25 Jan 2005
|