in reply to problem with repeating function

You are mixing 'require' with 'use', is there a reason for that? 'require' is executed at run-time and 'use' at compile time.
You do not appear to be exporting the subroutine name. That is not necessary if called as a method (using the -> convention) or direct, using wrapper::call_httpd_exec. Otherwise ther is no way for Perl to know which namespace (package) the subroutine is in.
(BTW I don't recommend using the & prefix for a straight subroutine call unless you have a good reason).

Replies are listed 'Best First'.
Re^2: problem with repeating function
by mrguy123 (Hermit) on Sep 04, 2006 at 11:42 UTC
    ---You are mixing 'require' with 'use', is there a reason for that? I am using both "require" and "use" programs in this case. I'm not sure what you mean about mixing them up. ---That is not necessary if called as a method (using the -> convention) or direct, using wrapper::call_httpd_exec I used wrapper::call_httpd_exec in my program but still recieved the same error message. Any ideas?